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