Portmap-6.0

Introduction to Portmap

The portmap package is a more secure replacement for the original SUN portmap package. Portmap is used to forward RPC requests to RPC daemons such as NFS and NIS.

Package Information

Portmap Dependencies

Required

TCP Wrapper-7.6

User Notes: http://wiki.linuxfromscratch.org/blfs/wiki/portmap

Installation of Portmap

Portmap runs as a daemon with a uid of 1. This uid is only configurable at compile time and is used as default. To set up a user to match this uid, as the root user, issue:

useradd -u 1 -g 1 -d /dev/null -s /bin/false bin

Install portmap with the following commands:

make

If you want the portmap daemon to use a uid/gid other than the defaults, pass DAEMON_UID=x and DAEMON_GID=y as shown below:

make DAEMON_UID=x DAEMON_GID=y

Now, as the root user:

make install
[Note]

Note

The above installation places executable portmap in /sbin. You may choose to move the file to /usr/sbin. If you do, remember to modify the bootscript also.

Configuring Portmap

Boot Script

Install the /etc/rc.d/init.d/portmap init script included in the blfs-bootscripts-20080816 package.

make install-portmap

Contents

Installed Programs: pmap_dump, pmap_set, and portmap
Installed Libraries: None
Installed Directories: None

Short Descriptions

pmap_dump

saves the port mapping table to an ASCII file.

pmap_set

restores the port mapping table from an ASCII file.

portmap

is an RPC port mapper.

Last updated on 2008-03-08 04:05:42 -0600