mountd - NFS mount daemon
/usr/sbin/rpc.mountd [ -f exports-file ] [ -d facility ] [ -P port ] [ -Dhnprv ] [ --debug ] [ --exports-file=file ] [ --help ] [ --allow-non-root ] [ --re-export ] [ --version ]
The mountd program is an NFS mount daemon. When receiving a MOUNT request from an NFS client, it checks the request against the list of exported file systems listen in /etc/exports. If the client is permitted to mount the file system, mountd creates a file handle for the requested directory, and adds an entry /etc/rmtab. Upon receipt of an UMOUNT request, it removes the client's entry from rmtab. Note, however, that a client may still be able to use the file handle after the UMOUNT request (for instance, if the client mounts the same remote file system on two different mount points). Similarly, if a client reboots without notifying mountd, a stale entry will remain in rmtab.
mountd can be started from inetd rather than at system boot time by adding the following two lines to /etc/inetd.conf:
mount/1-2 dgram rpc/udp wait root /usr/sbin/rpc.mountd rpc.mountd mount/1-2 stream rpc/tcp wait root /usr/sbin/rpc.mountd rpc.mountd
When run from inetd, mountd will terminate after a certain period of inactivity.
-f or --exports-file
This option specifies the exports file, listing the
clients that this server is prepared to serve and
parameters to apply to each such mount (see
exports(5)
). By default exports are read from
/etc/exports.
The information in /etc/rmtab is inaccurate more often than not.
When receiving a SIGHUP, mountd will re-read the exports file. Note that to make export changes take effect, you have to send nfsd a SIGHUP as well.
/etc/exports
/etc/rmtab
exports(5) , nfsd(8) , ugidd(8C) , showmount(8) .