The rpcbind program is a replacement for portmap. It is required for import or export of Network File System (NFS) shared directories.
This package is known to build and work properly using an LFS-8.3 platform.
Download (HTTP): https://downloads.sourceforge.net/rpcbind/rpcbind-0.2.4.tar.bz2
Download MD5 sum: cf10cd41ed8228fc54c316191c1f07fe
Download size: 120 KB
Estimated disk space required: 1.6 MB
Estimated build time: less than 0.1 SBU
User Notes: http://wiki.linuxfromscratch.org/blfs/wiki/rpcbind
There should be a dedicated user and group to take control of the
rpcbind daemon after
it is started. Issue the following commands as the root
user:
groupadd -g 28 rpc && useradd -c "RPC Bind Daemon Owner" -d /dev/null -g rpc \ -s /bin/false -u 28 rpc
In order to get rpcbind to work properly, first fix the package to use correct service name:
sed -i "/servname/s:rpcbind:sunrpc:" src/rpcbind.c
Install rpcbind by running the following commands:
patch -Np1 -i ../rpcbind-0.2.4-vulnerability_fixes-1.patch && ./configure --prefix=/usr \ --bindir=/sbin \ --enable-warmstarts \ --with-rpcuser=rpc && make
This package does not come with a test suite.
Now, as the root
user:
make install
--with-rpcuser=rpc
: This
switch is used so the rpcbind daemon will run as an
unprivileged user instead of the root
user.
Install the rpcbind.service
unit included in the blfs-systemd-units-20180105 package.
make install-rpcbind
Last updated on 2018-08-14 15:05:25 -0700