[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 |
|
---|
[8dfc5c3] | 7 | <!ENTITY rpcbind-download-http "&sourceforge-dl;/rpcbind/rpcbind-&rpcbind-version;.tar.bz2">
|
---|
[d40e1a4] | 8 | <!ENTITY rpcbind-download-ftp " ">
|
---|
[9c7bc2a] | 9 | <!ENTITY rpcbind-md5sum "ed46f09b9c0fa2d49015f6431bc5ea7b">
|
---|
| 10 | <!ENTITY rpcbind-size "124 KB">
|
---|
[d34d560] | 11 | <!ENTITY rpcbind-buildsize "1.7 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 |
|
---|
[b51fe6e] | 32 | <para>
|
---|
| 33 | The <application>rpcbind</application> program is a replacement for
|
---|
| 34 | <application>portmap</application>. It is required for import or export
|
---|
| 35 | of Network File System (NFS) shared directories.
|
---|
| 36 | </para>
|
---|
[d40e1a4] | 37 |
|
---|
[66c4901f] | 38 | &lfs91_checked;
|
---|
[d40e1a4] | 39 |
|
---|
| 40 | <bridgehead renderas="sect3">Package Information</bridgehead>
|
---|
| 41 | <itemizedlist spacing="compact">
|
---|
| 42 | <listitem>
|
---|
[b51fe6e] | 43 | <para>
|
---|
| 44 | Download (HTTP): <ulink url="&rpcbind-download-http;"/>
|
---|
| 45 | </para>
|
---|
[d40e1a4] | 46 | </listitem>
|
---|
| 47 | <listitem>
|
---|
[b51fe6e] | 48 | <para>
|
---|
| 49 | Download (FTP): <ulink url="&rpcbind-download-ftp;"/>
|
---|
| 50 | </para>
|
---|
[d40e1a4] | 51 | </listitem>
|
---|
| 52 | <listitem>
|
---|
[b51fe6e] | 53 | <para>
|
---|
| 54 | Download MD5 sum: &rpcbind-md5sum;
|
---|
| 55 | </para>
|
---|
[d40e1a4] | 56 | </listitem>
|
---|
| 57 | <listitem>
|
---|
[b51fe6e] | 58 | <para>
|
---|
| 59 | Download size: &rpcbind-size;
|
---|
| 60 | </para>
|
---|
[d40e1a4] | 61 | </listitem>
|
---|
| 62 | <listitem>
|
---|
[b51fe6e] | 63 | <para>
|
---|
| 64 | Estimated disk space required: &rpcbind-buildsize;
|
---|
| 65 | </para>
|
---|
[d40e1a4] | 66 | </listitem>
|
---|
| 67 | <listitem>
|
---|
[b51fe6e] | 68 | <para>
|
---|
| 69 | Estimated build time: &rpcbind-time;
|
---|
| 70 | </para>
|
---|
[d40e1a4] | 71 | </listitem>
|
---|
| 72 | </itemizedlist>
|
---|
[4df25bd0] | 73 |
|
---|
[a4b8fa34] | 74 | <bridgehead renderas="sect3">Additional Downloads</bridgehead>
|
---|
| 75 | <itemizedlist spacing="compact">
|
---|
| 76 | <listitem>
|
---|
| 77 | <para>
|
---|
| 78 | Required patch:
|
---|
[4df25bd0] | 79 | <ulink url="&patch-root;/rpcbind-&rpcbind-version;-vulnerability_fixes-1.patch"/>
|
---|
[a4b8fa34] | 80 | </para>
|
---|
| 81 | </listitem>
|
---|
| 82 | </itemizedlist>
|
---|
[4df25bd0] | 83 |
|
---|
[d40e1a4] | 84 | <bridgehead renderas="sect3">rpcbind Dependencies</bridgehead>
|
---|
| 85 |
|
---|
| 86 | <bridgehead renderas="sect4">Required</bridgehead>
|
---|
| 87 | <para role="required">
|
---|
| 88 | <xref linkend="libtirpc"/>
|
---|
| 89 | </para>
|
---|
| 90 |
|
---|
| 91 | <para condition="html" role="usernotes">User Notes:
|
---|
| 92 | <ulink url="&blfs-wiki;/rpcbind"/></para>
|
---|
| 93 |
|
---|
| 94 | </sect2>
|
---|
| 95 |
|
---|
| 96 | <sect2 role="installation">
|
---|
| 97 | <title>Installation of rpcbind</title>
|
---|
| 98 |
|
---|
[7b478500] | 99 | <para revision="systemd">
|
---|
| 100 | There should be a dedicated user and group to take control
|
---|
| 101 | of the <command>rpcbind</command> daemon after it is started.
|
---|
| 102 | Issue the following commands as the
|
---|
| 103 | <systemitem class="username">root</systemitem> user:
|
---|
| 104 | </para>
|
---|
| 105 |
|
---|
| 106 | <screen role="root" revision="systemd"><userinput>groupadd -g 28 rpc &&
|
---|
| 107 | useradd -c "RPC Bind Daemon Owner" -d /dev/null -g rpc \
|
---|
| 108 | -s /bin/false -u 28 rpc</userinput></screen>
|
---|
| 109 |
|
---|
[e0ac6b0] | 110 | <!-- Packages should adapt to standards, not the other way around -->
|
---|
[b51fe6e] | 111 | <para>
|
---|
| 112 | In order to get <application>rpcbind</application> to work
|
---|
| 113 | properly, first fix the package to use correct service name:
|
---|
| 114 | </para>
|
---|
[ed6a289c] | 115 |
|
---|
[e6b0c4d] | 116 | <screen><userinput>sed -i "/servname/s:rpcbind:sunrpc:" src/rpcbind.c</userinput></screen>
|
---|
[ed6a289c] | 117 |
|
---|
[b51fe6e] | 118 | <para>
|
---|
| 119 | Install <application>rpcbind</application> by running the following
|
---|
| 120 | commands:
|
---|
| 121 | </para>
|
---|
[d40e1a4] | 122 |
|
---|
[4df25bd0] | 123 | <screen revision="sysv"><userinput>patch -Np1 -i ../rpcbind-&rpcbind-version;-vulnerability_fixes-1.patch &&
|
---|
[4bf60a36] | 124 |
|
---|
[4df25bd0] | 125 | ./configure --prefix=/usr \
|
---|
| 126 | --bindir=/sbin \
|
---|
[299c44c] | 127 | --sbindir=/sbin \
|
---|
[4df25bd0] | 128 | --with-rpcuser=root \
|
---|
| 129 | --enable-warmstarts \
|
---|
| 130 | --without-systemdsystemunitdir &&
|
---|
[d40e1a4] | 131 | make</userinput></screen>
|
---|
| 132 |
|
---|
[74c70faa] | 133 | <screen revision="systemd"><userinput>patch -Np1 -i ../rpcbind-&rpcbind-version;-vulnerability_fixes-1.patch &&
|
---|
| 134 |
|
---|
| 135 | ./configure --prefix=/usr \
|
---|
| 136 | --bindir=/sbin \
|
---|
[299c44c] | 137 | --sbindir=/sbin \
|
---|
[74c70faa] | 138 | --enable-warmstarts \
|
---|
| 139 | --with-rpcuser=rpc &&
|
---|
[3c7bd00] | 140 | make</userinput></screen>
|
---|
| 141 |
|
---|
[b51fe6e] | 142 | <para>
|
---|
| 143 | This package does not come with a test suite.
|
---|
| 144 | </para>
|
---|
[d40e1a4] | 145 |
|
---|
[b51fe6e] | 146 | <para>
|
---|
| 147 | Now, as the <systemitem class="username">root</systemitem> user:
|
---|
| 148 | </para>
|
---|
[d40e1a4] | 149 |
|
---|
| 150 | <screen role="root"><userinput>make install</userinput></screen>
|
---|
| 151 |
|
---|
| 152 | </sect2>
|
---|
| 153 |
|
---|
[67f5f160] | 154 | <sect2 role="commands">
|
---|
| 155 | <title>Command Explanations</title>
|
---|
| 156 |
|
---|
[b51fe6e] | 157 | <para revision="sysv">
|
---|
| 158 | <command>--with-rpcuser=root</command>: This works
|
---|
| 159 | around an error in the configure script.
|
---|
| 160 | </para>
|
---|
[67f5f160] | 161 |
|
---|
[b51fe6e] | 162 | <para revision="sysv">
|
---|
| 163 | <command>--without-systemdsystemunitdir</command>:
|
---|
| 164 | This version of BLFS does not support systemd.
|
---|
| 165 | </para>
|
---|
[522641a] | 166 |
|
---|
[b51fe6e] | 167 | <para revision="systemd">
|
---|
| 168 | <parameter>--with-rpcuser=rpc</parameter>:
|
---|
| 169 | This switch is used so the <command>rpcbind</command> daemon will
|
---|
| 170 | run as an unprivileged user instead of the
|
---|
| 171 | <systemitem class="username">root</systemitem> user.
|
---|
| 172 | </para>
|
---|
[7b478500] | 173 |
|
---|
[67f5f160] | 174 | </sect2>
|
---|
| 175 |
|
---|
[d40e1a4] | 176 | <sect2 role="configuration">
|
---|
| 177 | <title>Configuring rpcbind</title>
|
---|
| 178 |
|
---|
| 179 | <sect3 id="rpcbind-init">
|
---|
[7b478500] | 180 | <title><phrase revision="sysv">Boot Script</phrase>
|
---|
| 181 | <phrase revision="systemd">Systemd Unit</phrase></title>
|
---|
| 182 |
|
---|
[b51fe6e] | 183 | <para>
|
---|
| 184 | Install the
|
---|
| 185 | <phrase revision="sysv"><filename>/etc/rc.d/init.d/rpcbind</filename>
|
---|
| 186 | init script</phrase>
|
---|
| 187 | <phrase revision="systemd"><filename>rpcbind.service</filename>
|
---|
| 188 | unit</phrase> included in the
|
---|
| 189 | <xref linkend="bootscripts" revision="sysv"/>
|
---|
| 190 | <xref linkend="systemd-units" revision="systemd"/> package.
|
---|
| 191 | </para>
|
---|
[d40e1a4] | 192 |
|
---|
[7b478500] | 193 | <indexterm zone="rpcbind rpcbind-init" revision="sysv">
|
---|
[b51fe6e] | 194 | <primary sortas="f-rpcbind">rpcbind</primary>
|
---|
[d40e1a4] | 195 | </indexterm>
|
---|
| 196 |
|
---|
[7b478500] | 197 | <indexterm zone="rpcbind rpcbind-init" revision="systemd">
|
---|
[b51fe6e] | 198 | <primary sortas="f-rpcbind">rpcbind.service</primary>
|
---|
[7b478500] | 199 | </indexterm>
|
---|
| 200 |
|
---|
[d40e1a4] | 201 | <screen role="root"><userinput>make install-rpcbind</userinput></screen>
|
---|
| 202 |
|
---|
| 203 | </sect3>
|
---|
| 204 |
|
---|
| 205 | </sect2>
|
---|
| 206 |
|
---|
| 207 | <sect2 role="content">
|
---|
| 208 | <title>Contents</title>
|
---|
| 209 |
|
---|
| 210 | <segmentedlist>
|
---|
| 211 | <segtitle>Installed Program</segtitle>
|
---|
| 212 | <segtitle>Installed Libraries</segtitle>
|
---|
| 213 | <segtitle>Installed Directories</segtitle>
|
---|
| 214 |
|
---|
| 215 | <seglistitem>
|
---|
| 216 | <seg>rpcbind and rpcinfo</seg>
|
---|
| 217 | <seg>None</seg>
|
---|
| 218 | <seg>None</seg>
|
---|
| 219 | </seglistitem>
|
---|
| 220 | </segmentedlist>
|
---|
| 221 |
|
---|
| 222 | <variablelist>
|
---|
| 223 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
| 224 | <?dbfo list-presentation="list"?>
|
---|
| 225 | <?dbhtml list-presentation="table"?>
|
---|
| 226 |
|
---|
| 227 | <varlistentry id="rpcbind-prog">
|
---|
| 228 | <term><command>rpcbind</command></term>
|
---|
| 229 | <listitem>
|
---|
[b51fe6e] | 230 | <para>
|
---|
| 231 | is a server that converts RPC program numbers into universal
|
---|
| 232 | addresses. It must be running on the host to be able to make RPC
|
---|
| 233 | calls on a server on that machine.
|
---|
| 234 | </para>
|
---|
[d40e1a4] | 235 | <indexterm zone="rpcbind rpcbind-prog">
|
---|
| 236 | <primary sortas="b-rpcbind">rpcbind</primary>
|
---|
| 237 | </indexterm>
|
---|
| 238 | </listitem>
|
---|
| 239 | </varlistentry>
|
---|
| 240 |
|
---|
| 241 | <varlistentry id="rpcinfo">
|
---|
| 242 | <term><command>rpcinfo</command></term>
|
---|
| 243 | <listitem>
|
---|
[b51fe6e] | 244 | <para>
|
---|
| 245 | makes an RPC call to an RPC server and reports data according
|
---|
| 246 | to the requested options.
|
---|
| 247 | </para>
|
---|
[d40e1a4] | 248 | <indexterm zone="rpcbind rpcinfo">
|
---|
| 249 | <primary sortas="b-rpcinfo">rpcinfo</primary>
|
---|
| 250 | </indexterm>
|
---|
| 251 | </listitem>
|
---|
| 252 | </varlistentry>
|
---|
| 253 |
|
---|
| 254 | </variablelist>
|
---|
| 255 |
|
---|
| 256 | </sect2>
|
---|
| 257 |
|
---|
| 258 | </sect1>
|
---|