rpcbind-1.2.8

#### Beyond Linux® From Scratch (systemd Edition) - Version r13.0-475

### Chapter 15. Networking Programs

- Prev

  ntp-4.2.8p18

- Next

  rsync-3.4.2

- Up
- Home

# rpcbind-1.2.8

## Introduction to rpcbind

The rpcbind program is a replacement for portmap. It is required for import or export of Network File System (NFS) shared directories.

### Note

Development versions of BLFS may not build or run some packages properly if LFS or dependencies have been updated since the most recent stable versions of the books.

### Package Information

- Download (HTTP): https://downloads.sourceforge.net/rpcbind/rpcbind-1.2.8.tar.bz2

- Download MD5 sum: dc7988c2307999525619983df72cb957

- Download size: 128 KB

- Estimated disk space required: 1.6 MB

- Estimated build time: less than 0.1 SBU

### rpcbind Dependencies

#### Required

libtirpc-1.3.7

## Installation of 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:

    ./configure --prefix=/usr       \
                --bindir=/usr/sbin  \
                --enable-warmstarts \
                --with-rpcuser=rpc  &&
    make

This package does not come with a test suite.

Now, as the `root` user:

    make install

Still as the `root` user, silence a warning that is emitted by the systemd unit:

    echo 'RPCBIND_OPTIONS=""' > /etc/rpcbind.conf

## Command Explanations

`--with-rpcuser=rpc`: This switch is used so the rpcbind daemon will run as an unprivileged user instead of the `root` user.

## Configuring rpcbind

### Systemd Unit

Enable the systemd unit installed with the package:

    systemctl enable rpcbind

## Contents

Installed Program: rpcbind and rpcinfo
Installed Libraries: None
Installed Directories: None

### Short Descriptions

rpcbind | is a server that converts RPC program numbers into universal addresses. It must be running on the host to be able to make RPC calls on a server on that machine
rpcinfo | makes an RPC call to an RPC server and reports data according to the requested options

- Prev

  ntp-4.2.8p18

- Next

  rsync-3.4.2

- Up
- Home