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