[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">
|
---|
[b91aa96] | 11 | <!ENTITY rpcbind-buildsize "2 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 |
|
---|
[b91aa96] | 32 | <para>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. </para>
|
---|
[d40e1a4] | 35 |
|
---|
[8ee0429] | 36 | &lfs79_checked;&gcc6_checked;
|
---|
[d40e1a4] | 37 |
|
---|
| 38 | <bridgehead renderas="sect3">Package Information</bridgehead>
|
---|
| 39 | <itemizedlist spacing="compact">
|
---|
| 40 | <listitem>
|
---|
[b91aa96] | 41 | <para>Download (HTTP): <ulink url="&rpcbind-download-http;"/></para>
|
---|
[d40e1a4] | 42 | </listitem>
|
---|
| 43 | <listitem>
|
---|
[b91aa96] | 44 | <para>Download (FTP): <ulink url="&rpcbind-download-ftp;"/></para>
|
---|
[d40e1a4] | 45 | </listitem>
|
---|
| 46 | <listitem>
|
---|
[b91aa96] | 47 | <para>Download MD5 sum: &rpcbind-md5sum;</para>
|
---|
[d40e1a4] | 48 | </listitem>
|
---|
| 49 | <listitem>
|
---|
[b91aa96] | 50 | <para>Download size: &rpcbind-size;</para>
|
---|
[d40e1a4] | 51 | </listitem>
|
---|
| 52 | <listitem>
|
---|
[b91aa96] | 53 | <para>Estimated disk space required: &rpcbind-buildsize;</para>
|
---|
[d40e1a4] | 54 | </listitem>
|
---|
[b91aa96] | 55 | <listitem>
|
---|
| 56 | <para>Estimated build time: &rpcbind-time;</para>
|
---|
| 57 | </listitem>
|
---|
| 58 | </itemizedlist>
|
---|
| 59 |
|
---|
| 60 | <bridgehead renderas="sect3">Additional Downloads</bridgehead>
|
---|
| 61 | <itemizedlist spacing="compact">
|
---|
[d40e1a4] | 62 | <listitem>
|
---|
[ac38e9dc] | 63 | <para>
|
---|
[b91aa96] | 64 | Required patch:
|
---|
| 65 | <ulink url="&patch-root;/rpcbind-&rpcbind-version;-tirpc_fix-1.patch"/>
|
---|
[ac38e9dc] | 66 | </para>
|
---|
[d40e1a4] | 67 | </listitem>
|
---|
| 68 | </itemizedlist>
|
---|
| 69 |
|
---|
| 70 | <bridgehead renderas="sect3">rpcbind Dependencies</bridgehead>
|
---|
| 71 |
|
---|
| 72 | <bridgehead renderas="sect4">Required</bridgehead>
|
---|
| 73 | <para role="required">
|
---|
| 74 | <xref linkend="libtirpc"/>
|
---|
| 75 | </para>
|
---|
| 76 |
|
---|
| 77 | <para condition="html" role="usernotes">User Notes:
|
---|
[b91aa96] | 78 | <ulink url="&blfs-wiki;/rpcbind"/></para>
|
---|
[d40e1a4] | 79 | </sect2>
|
---|
| 80 |
|
---|
| 81 | <sect2 role="installation">
|
---|
| 82 | <title>Installation of rpcbind</title>
|
---|
| 83 |
|
---|
[ac38e9dc] | 84 | <para>
|
---|
| 85 | There should be a dedicated user and group to take control
|
---|
| 86 | of the <command>rpcbind</command> daemon after it is started.
|
---|
| 87 | Issue the following commands as the
|
---|
| 88 | <systemitem class="username">root</systemitem> user:
|
---|
| 89 | </para>
|
---|
| 90 |
|
---|
| 91 | <screen role="root"><userinput>groupadd -g 28 rpc &&
|
---|
| 92 | useradd -c "RPC Bind Daemon Owner" -d /dev/null -g rpc \
|
---|
| 93 | -s /bin/false -u 28 rpc</userinput></screen>
|
---|
| 94 |
|
---|
[e0ac6b0] | 95 | <!-- Packages should adapt to standards, not the other way around -->
|
---|
[b91aa96] | 96 | <para>In order to get <application>rpcbind</application> to work
|
---|
| 97 | properly, first fix the package to use correct service name:</para>
|
---|
[ed6a289c] | 98 |
|
---|
[b91aa96] | 99 | <screen><userinput>sed -i "/servname/s:rpcbind:sunrpc:" src/rpcbind.c &&</userinput></screen>
|
---|
[ed6a289c] | 100 |
|
---|
[b91aa96] | 101 | <para>Install <application>rpcbind</application> by running the following
|
---|
| 102 | commands:</para>
|
---|
[d40e1a4] | 103 |
|
---|
[b91aa96] | 104 | <screen><userinput>patch -Np1 -i ../rpcbind-&rpcbind-version;-tirpc_fix-1.patch &&
|
---|
| 105 | ./configure --prefix=/usr \
|
---|
[ac38e9dc] | 106 | --bindir=/sbin \
|
---|
[b91aa96] | 107 | --with-rpcuser=rpc &&
|
---|
[d40e1a4] | 108 | make</userinput></screen>
|
---|
| 109 |
|
---|
[b91aa96] | 110 | <para>This package does not come with a test suite.</para>
|
---|
[d40e1a4] | 111 |
|
---|
[b91aa96] | 112 | <para>Now, as the <systemitem class="username">root</systemitem>
|
---|
| 113 | user:</para>
|
---|
[d40e1a4] | 114 |
|
---|
[b91aa96] | 115 | <screen role="root"><userinput>make install</userinput></screen>
|
---|
[d40e1a4] | 116 |
|
---|
| 117 | </sect2>
|
---|
| 118 |
|
---|
[67f5f160] | 119 | <sect2 role="commands">
|
---|
| 120 | <title>Command Explanations</title>
|
---|
| 121 |
|
---|
[ac38e9dc] | 122 | <para>
|
---|
| 123 | <parameter>--with-rpcuser=rpc</parameter>: This switch
|
---|
| 124 | is used so the <command>rpcbind</command> daemon will
|
---|
| 125 | run as an unprivileged user instead of
|
---|
| 126 | <systemitem class="username">root</systemitem> user.
|
---|
| 127 | </para>
|
---|
| 128 |
|
---|
[67f5f160] | 129 | </sect2>
|
---|
| 130 |
|
---|
[d40e1a4] | 131 | <sect2 role="configuration">
|
---|
| 132 | <title>Configuring rpcbind</title>
|
---|
| 133 |
|
---|
| 134 | <sect3 id="rpcbind-init">
|
---|
[0da88ea3] | 135 | <title>Systemd Units</title>
|
---|
| 136 |
|
---|
| 137 | <para>
|
---|
| 138 | To start the <command>rpcbind</command> daemon at boot,
|
---|
| 139 | install the systemd unit from the <xref linkend="bootscripts"/>
|
---|
| 140 | package by running the following command as the
|
---|
| 141 | <systemitem class="username">root</systemitem> user:
|
---|
| 142 | </para>
|
---|
[d40e1a4] | 143 |
|
---|
| 144 | <indexterm zone="rpcbind rpcbind-init">
|
---|
[79d191ee] | 145 | <primary sortas="f-rpcbind">rpcbind</primary>
|
---|
[d40e1a4] | 146 | </indexterm>
|
---|
| 147 |
|
---|
| 148 | <screen role="root"><userinput>make install-rpcbind</userinput></screen>
|
---|
| 149 |
|
---|
[ac38e9dc] | 150 | <note>
|
---|
| 151 | <para>
|
---|
| 152 | This package uses socket based activation and will be started when
|
---|
| 153 | something needs it. No standalone unit file is provided for this
|
---|
| 154 | package.
|
---|
| 155 | </para>
|
---|
| 156 | </note>
|
---|
| 157 |
|
---|
[d40e1a4] | 158 | </sect3>
|
---|
| 159 |
|
---|
| 160 | </sect2>
|
---|
| 161 |
|
---|
| 162 | <sect2 role="content">
|
---|
| 163 | <title>Contents</title>
|
---|
| 164 |
|
---|
| 165 | <segmentedlist>
|
---|
[b91aa96] | 166 | <segtitle>Installed Program</segtitle>
|
---|
[d40e1a4] | 167 | <segtitle>Installed Libraries</segtitle>
|
---|
| 168 | <segtitle>Installed Directories</segtitle>
|
---|
| 169 |
|
---|
| 170 | <seglistitem>
|
---|
[b91aa96] | 171 | <seg>rpcbind and rpcinfo</seg>
|
---|
| 172 | <seg>None</seg>
|
---|
| 173 | <seg>None</seg>
|
---|
[d40e1a4] | 174 | </seglistitem>
|
---|
| 175 | </segmentedlist>
|
---|
| 176 |
|
---|
| 177 | <variablelist>
|
---|
| 178 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
| 179 | <?dbfo list-presentation="list"?>
|
---|
| 180 | <?dbhtml list-presentation="table"?>
|
---|
| 181 |
|
---|
| 182 | <varlistentry id="rpcbind-prog">
|
---|
| 183 | <term><command>rpcbind</command></term>
|
---|
| 184 | <listitem>
|
---|
[b91aa96] | 185 | <para>is a server that converts RPC program numbers into universal
|
---|
| 186 | addresses. It must be running on the host to be able to make RPC
|
---|
| 187 | calls on a server on that machine. </para>
|
---|
[d40e1a4] | 188 | <indexterm zone="rpcbind rpcbind-prog">
|
---|
| 189 | <primary sortas="b-rpcbind">rpcbind</primary>
|
---|
| 190 | </indexterm>
|
---|
| 191 | </listitem>
|
---|
| 192 | </varlistentry>
|
---|
| 193 |
|
---|
| 194 | <varlistentry id="rpcinfo">
|
---|
| 195 | <term><command>rpcinfo</command></term>
|
---|
| 196 | <listitem>
|
---|
[b91aa96] | 197 | <para>makes an RPC call to an RPC server and reports data according
|
---|
| 198 | to the requested options. </para>
|
---|
[d40e1a4] | 199 | <indexterm zone="rpcbind rpcinfo">
|
---|
| 200 | <primary sortas="b-rpcinfo">rpcinfo</primary>
|
---|
| 201 | </indexterm>
|
---|
| 202 | </listitem>
|
---|
| 203 | </varlistentry>
|
---|
| 204 |
|
---|
| 205 | </variablelist>
|
---|
| 206 |
|
---|
| 207 | </sect2>
|
---|
| 208 |
|
---|
| 209 | </sect1>
|
---|