[d40e1a4] | 1 | <?xml version="1.0" encoding="ISO-8859-1"?>
|
---|
| 2 | <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
|
---|
| 3 | "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
|
---|
| 4 | <!ENTITY % general-entities SYSTEM "../../general.ent">
|
---|
| 5 | %general-entities;
|
---|
| 6 |
|
---|
| 7 | <!ENTITY rpcbind-download-http "&sourceforge-repo;/rpcbind/rpcbind-&rpcbind-version;.tar.bz2">
|
---|
| 8 | <!ENTITY rpcbind-download-ftp " ">
|
---|
[ac38e9dc] | 9 | <!ENTITY rpcbind-md5sum "c8875246b2688a1adfbd6ad43480278d">
|
---|
| 10 | <!ENTITY rpcbind-size "120 KB">
|
---|
| 11 | <!ENTITY rpcbind-buildsize "2.0 MB">
|
---|
[d40e1a4] | 12 | <!ENTITY rpcbind-time "less than 0.1 SBU">
|
---|
| 13 | ]>
|
---|
| 14 |
|
---|
| 15 | <sect1 id="rpcbind" xreflabel="rpcbind-&rpcbind-version;">
|
---|
| 16 | <?dbhtml filename="rpcbind.html"?>
|
---|
| 17 |
|
---|
| 18 | <sect1info>
|
---|
| 19 | <othername>$LastChangedBy$</othername>
|
---|
| 20 | <date>$Date$</date>
|
---|
| 21 | </sect1info>
|
---|
| 22 |
|
---|
| 23 | <title>rpcbind-&rpcbind-version;</title>
|
---|
| 24 |
|
---|
| 25 | <indexterm zone="rpcbind">
|
---|
| 26 | <primary sortas="a-rpcbind">rpcbind</primary>
|
---|
| 27 | </indexterm>
|
---|
| 28 |
|
---|
| 29 | <sect2 role="package">
|
---|
| 30 | <title>Introduction to rpcbind</title>
|
---|
| 31 |
|
---|
[ac38e9dc] | 32 | <para>
|
---|
| 33 | The <application>rpcbind</application> program is a replacement for
|
---|
| 34 | <application>portmap</application>. It is required for import or
|
---|
| 35 | export of Network File System (NFS) shared directories.
|
---|
| 36 | </para>
|
---|
[d40e1a4] | 37 |
|
---|
[ac38e9dc] | 38 | &lfs77_checked;
|
---|
[d40e1a4] | 39 |
|
---|
| 40 | <bridgehead renderas="sect3">Package Information</bridgehead>
|
---|
| 41 | <itemizedlist spacing="compact">
|
---|
| 42 | <listitem>
|
---|
[ac38e9dc] | 43 | <para>
|
---|
| 44 | Download (HTTP): <ulink url="&rpcbind-download-http;"/>
|
---|
| 45 | </para>
|
---|
[d40e1a4] | 46 | </listitem>
|
---|
| 47 | <listitem>
|
---|
[ac38e9dc] | 48 | <para>
|
---|
| 49 | Download (FTP): <ulink url="&rpcbind-download-ftp;"/>
|
---|
| 50 | </para>
|
---|
[d40e1a4] | 51 | </listitem>
|
---|
| 52 | <listitem>
|
---|
[ac38e9dc] | 53 | <para>
|
---|
| 54 | Download MD5 sum: &rpcbind-md5sum;
|
---|
| 55 | </para>
|
---|
[d40e1a4] | 56 | </listitem>
|
---|
| 57 | <listitem>
|
---|
[ac38e9dc] | 58 | <para>
|
---|
| 59 | Download size: &rpcbind-size;
|
---|
| 60 | </para>
|
---|
[d40e1a4] | 61 | </listitem>
|
---|
| 62 | <listitem>
|
---|
[ac38e9dc] | 63 | <para>
|
---|
| 64 | Estimated disk space required: &rpcbind-buildsize;
|
---|
| 65 | </para>
|
---|
[d40e1a4] | 66 | </listitem>
|
---|
| 67 | <listitem>
|
---|
[ac38e9dc] | 68 | <para>
|
---|
| 69 | Estimated build time: &rpcbind-time;
|
---|
| 70 | </para>
|
---|
[d40e1a4] | 71 | </listitem>
|
---|
| 72 | </itemizedlist>
|
---|
| 73 |
|
---|
| 74 | <bridgehead renderas="sect3">rpcbind Dependencies</bridgehead>
|
---|
| 75 |
|
---|
| 76 | <bridgehead renderas="sect4">Required</bridgehead>
|
---|
| 77 | <para role="required">
|
---|
| 78 | <xref linkend="libtirpc"/>
|
---|
| 79 | </para>
|
---|
| 80 |
|
---|
| 81 | <para condition="html" role="usernotes">User Notes:
|
---|
[ac38e9dc] | 82 | <ulink url="&blfs-wiki;/rpcbind"/>
|
---|
| 83 | </para>
|
---|
[d40e1a4] | 84 | </sect2>
|
---|
| 85 |
|
---|
| 86 | <sect2 role="installation">
|
---|
| 87 | <title>Installation of rpcbind</title>
|
---|
| 88 |
|
---|
[ac38e9dc] | 89 | <para>
|
---|
| 90 | There should be a dedicated user and group to take control
|
---|
| 91 | of the <command>rpcbind</command> daemon after it is started.
|
---|
| 92 | Issue the following commands as the
|
---|
| 93 | <systemitem class="username">root</systemitem> user:
|
---|
| 94 | </para>
|
---|
| 95 |
|
---|
| 96 | <screen role="root"><userinput>groupadd -g 28 rpc &&
|
---|
| 97 | useradd -c "RPC Bind Daemon Owner" -d /dev/null -g rpc \
|
---|
| 98 | -s /bin/false -u 28 rpc</userinput></screen>
|
---|
| 99 |
|
---|
[e0ac6b0] | 100 | <!-- Packages should adapt to standards, not the other way around -->
|
---|
[ac38e9dc] | 101 | <para>
|
---|
| 102 | In order to get <application>rpcbind</application> to work
|
---|
| 103 | properly, first fix the package to use correct service name:
|
---|
| 104 | </para>
|
---|
[ed6a289c] | 105 |
|
---|
[79d191ee] | 106 | <screen><userinput>sed -i "/servname/s:rpcbind:sunrpc:" src/rpcbind.c &&
|
---|
| 107 | sed -i "/error = getaddrinfo/s:rpcbind:sunrpc:" src/rpcinfo.c</userinput></screen>
|
---|
[ed6a289c] | 108 |
|
---|
[ac38e9dc] | 109 | <para>
|
---|
| 110 | Install <application>rpcbind</application> by running the following
|
---|
| 111 | commands:
|
---|
| 112 | </para>
|
---|
[d40e1a4] | 113 |
|
---|
[ac38e9dc] | 114 | <screen><userinput>./configure --prefix=/usr \
|
---|
| 115 | --bindir=/sbin \
|
---|
| 116 | --with-rpcuser=rpc \
|
---|
| 117 | --enable-warmstarts \
|
---|
| 118 | --with-statedir=/var/lib/rpcbind &&
|
---|
[d40e1a4] | 119 | make</userinput></screen>
|
---|
| 120 |
|
---|
[ac38e9dc] | 121 | <para>
|
---|
| 122 | This package does not come with a test suite.
|
---|
| 123 | </para>
|
---|
[d40e1a4] | 124 |
|
---|
[ac38e9dc] | 125 | <para>
|
---|
| 126 | Now, as the <systemitem class="username">root</systemitem> user:
|
---|
| 127 | </para>
|
---|
[d40e1a4] | 128 |
|
---|
[ac38e9dc] | 129 | <screen role="root"><userinput>make install &&
|
---|
| 130 | install -v -dm755 -o rpc -g rpc /var/lib/rpcbind</userinput></screen>
|
---|
[d40e1a4] | 131 |
|
---|
| 132 | </sect2>
|
---|
| 133 |
|
---|
[67f5f160] | 134 | <sect2 role="commands">
|
---|
| 135 | <title>Command Explanations</title>
|
---|
| 136 |
|
---|
[ac38e9dc] | 137 | <para>
|
---|
| 138 | <parameter>--with-rpcuser=rpc</parameter>: This switch
|
---|
| 139 | is used so the <command>rpcbind</command> daemon will
|
---|
| 140 | run as an unprivileged user instead of
|
---|
| 141 | <systemitem class="username">root</systemitem> user.
|
---|
| 142 | </para>
|
---|
| 143 |
|
---|
| 144 | <para>
|
---|
| 145 | <parameter>--enable-warmstarts</parameter>: This switch
|
---|
| 146 | is used to enable <command>rpcbind</command> to write
|
---|
| 147 | the current list of registered services to a file when
|
---|
| 148 | it shuts down so it can resume operation with the
|
---|
| 149 | registrations found in the file when it is started again.
|
---|
| 150 | </para>
|
---|
| 151 |
|
---|
| 152 | <para>
|
---|
| 153 | <parameter>--with-statedir=/var/lib/rpcbind</parameter>:
|
---|
| 154 | This switch is used to instruct <command>rpcbind</command>
|
---|
| 155 | to write current list of registered services to a
|
---|
| 156 | permanent location of <filename
|
---|
| 157 | class="directory">/var/lib/rpcbind</filename> instead of
|
---|
| 158 | <filename class="directory">/tmp</filename>.
|
---|
| 159 | </para>
|
---|
[67f5f160] | 160 |
|
---|
| 161 | </sect2>
|
---|
| 162 |
|
---|
[d40e1a4] | 163 | <sect2 role="configuration">
|
---|
| 164 | <title>Configuring rpcbind</title>
|
---|
| 165 |
|
---|
| 166 | <sect3 id="rpcbind-init">
|
---|
[0da88ea3] | 167 | <title>Systemd Units</title>
|
---|
| 168 |
|
---|
| 169 | <para>
|
---|
| 170 | To start the <command>rpcbind</command> daemon at boot,
|
---|
| 171 | install the systemd unit from the <xref linkend="bootscripts"/>
|
---|
| 172 | package by running the following command as the
|
---|
| 173 | <systemitem class="username">root</systemitem> user:
|
---|
| 174 | </para>
|
---|
[d40e1a4] | 175 |
|
---|
| 176 | <indexterm zone="rpcbind rpcbind-init">
|
---|
[79d191ee] | 177 | <primary sortas="f-rpcbind">rpcbind</primary>
|
---|
[d40e1a4] | 178 | </indexterm>
|
---|
| 179 |
|
---|
| 180 | <screen role="root"><userinput>make install-rpcbind</userinput></screen>
|
---|
| 181 |
|
---|
[ac38e9dc] | 182 | <note>
|
---|
| 183 | <para>
|
---|
| 184 | This package uses socket based activation and will be started when
|
---|
| 185 | something needs it. No standalone unit file is provided for this
|
---|
| 186 | package.
|
---|
| 187 | </para>
|
---|
| 188 | </note>
|
---|
| 189 |
|
---|
[d40e1a4] | 190 | </sect3>
|
---|
| 191 |
|
---|
| 192 | </sect2>
|
---|
| 193 |
|
---|
| 194 | <sect2 role="content">
|
---|
| 195 | <title>Contents</title>
|
---|
| 196 |
|
---|
| 197 | <segmentedlist>
|
---|
[ac38e9dc] | 198 | <segtitle>Installed Programs</segtitle>
|
---|
[d40e1a4] | 199 | <segtitle>Installed Libraries</segtitle>
|
---|
| 200 | <segtitle>Installed Directories</segtitle>
|
---|
| 201 |
|
---|
| 202 | <seglistitem>
|
---|
[ac38e9dc] | 203 | <seg>
|
---|
| 204 | rpcbind and rpcinfo
|
---|
| 205 | </seg>
|
---|
| 206 | <seg>
|
---|
| 207 | None
|
---|
| 208 | </seg>
|
---|
| 209 | <seg>
|
---|
| 210 | None
|
---|
| 211 | </seg>
|
---|
[d40e1a4] | 212 | </seglistitem>
|
---|
| 213 | </segmentedlist>
|
---|
| 214 |
|
---|
| 215 | <variablelist>
|
---|
| 216 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
| 217 | <?dbfo list-presentation="list"?>
|
---|
| 218 | <?dbhtml list-presentation="table"?>
|
---|
| 219 |
|
---|
| 220 | <varlistentry id="rpcbind-prog">
|
---|
| 221 | <term><command>rpcbind</command></term>
|
---|
| 222 | <listitem>
|
---|
[ac38e9dc] | 223 | <para>
|
---|
| 224 | is a server that converts RPC program numbers into universal
|
---|
| 225 | addresses. It must be running on the host to be able to make
|
---|
| 226 | RPC calls on a server on that machine.
|
---|
| 227 | </para>
|
---|
[d40e1a4] | 228 | <indexterm zone="rpcbind rpcbind-prog">
|
---|
| 229 | <primary sortas="b-rpcbind">rpcbind</primary>
|
---|
| 230 | </indexterm>
|
---|
| 231 | </listitem>
|
---|
| 232 | </varlistentry>
|
---|
| 233 |
|
---|
| 234 | <varlistentry id="rpcinfo">
|
---|
| 235 | <term><command>rpcinfo</command></term>
|
---|
| 236 | <listitem>
|
---|
[ac38e9dc] | 237 | <para>
|
---|
| 238 | makes an RPC call to an RPC server and reports data according
|
---|
| 239 | to the requested options.
|
---|
| 240 | </para>
|
---|
[d40e1a4] | 241 | <indexterm zone="rpcbind rpcinfo">
|
---|
| 242 | <primary sortas="b-rpcinfo">rpcinfo</primary>
|
---|
| 243 | </indexterm>
|
---|
| 244 | </listitem>
|
---|
| 245 | </varlistentry>
|
---|
| 246 |
|
---|
| 247 | </variablelist>
|
---|
| 248 |
|
---|
| 249 | </sect2>
|
---|
| 250 |
|
---|
| 251 | </sect1>
|
---|