Home
Main website
Display Sidebar
Hide Ads
Recent Changes
View Source:
rpc.mountd(8)
Edit
PageHistory
Diff
Info
LikePages
MOUNTD !!!MOUNTD NAME SYNOPSIS DESCRIPTION OPTIONS BUGS SIGNALS FILES SEE ALSO ---- !!NAME mountd - NFS mount daemon !!SYNOPSIS __/usr/sbin/rpc.mountd [[ -f exports-file ] [[ -d facility ] [[ -P port ] [[ -Dhnprv ] [[ --debug facility ] [[ --exports-file=file ] [[ --help ] [[ --allow-non-root ] [[ --re-export ] [[ --no-spoof-trace ] [[ --version ]__ !!DESCRIPTION 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''. __Running from inetd__ ''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. !!OPTIONS __-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''. __-d__ or __--debug__ Log each transaction verbosely to standard error. Valid log facilities are ''call'' for the logging of all calls, ''auth'' for client authentication, ''fhcache'' for operations of the file handle cache, and ''rmtab'' for manipulation of ''/etc/rmtab''. By default, log output is sent to syslogd unless the daemon runs in the foreground. __-F__ or __--foreground__ Unlike normal in operation, ''mountd'' will not detach from the terminal when given this option. When debugging is requested, it will be sent to standard error. __-h__ or __--help__ Provide a short help summary. __-n__ or __--allow-non-root__ Allow incoming mount requests to be honored even if they do not originate from reserved IP ports. Some older NFS client implementations require this. Some newer NFS client implementations don't believe in reserved port checking. __-P portnum__ or __--port portnum__ Makes ''mountd'' listen on port __portnum__ instead of some random port. By default, ''mountd'' will listen on the mount/udp port specified in ''/etc/services'', or, if that is undefined, on some arbitrary port number below 1024. __-p__ or __--promiscuous__ Put the server into promiscuous mode where it will serve any host on the network. __-r__ or __--re-export__ Allow imported NFS or SMB file-systems to be exported. This can be used to turn a machine into an NFS/SMB multiplier. Caution should be used when re-exporting loopback mounts because re-entering the mount point will result in deadlock between the client file system code and the server. __-t__ or __--no-spoof-trace__ By default, ''mountd'' logs every access by unauthorized clients. This option turns off logging of such spoof attempts for all hosts listed explicitly in the ''exports'' file. __-v__ or __--version__ Report the current version number of the program. __Access Control__ For enhanced security, access to ''mountd'' can be limited via the TCP wrapper library that's part of Wietse Venema's tcp_wrappers package. Support for this option must be selected at compile time. In order to restrict access to all hosts on your local network (say 192.168.1.0), you would add the following lines to your ''/etc/hosts.allow'' file: ''rpc.mountd : 192.168.1. : allow rpc.mountd : ALL : deny ''This example assumes your TCP wrapper library was compiled with options support (which I highly recommend). If it has been compiled without options support, you need to add the following two lines to ''/etc/hosts.allow and /etc/hosts.deny,'' respectively: ''# hosts.allow: rpc.mountd : 192.168.1 # hosts.deny rpc.mountd : ALL ''When changing this information, you must restart ''mountd'' for these changes to take effect, either by killing and restarting, or by sending it the HUP signal. !!BUGS The information in ''/etc/rmtab'' is inaccurate more often than not. !!SIGNALS When receiving a SIGHUP, ''mountd'' will re-read the ''exports'' file and any access restrictions defined in the ''/etc/hosts.allow and /etc/hosts.deny'' file. Note that to make export changes take effect, you have to send ''nfsd'' a SIGHUP as well. !!FILES ''/etc/exports /etc/rmtab'' !!SEE ALSO exports(5), nfsd(8), ugidd(8C), showmount(8). ----
3 pages link to
rpc.mountd(8)
:
Man8r
showmount(8)
RemoteProcedureCall
This page is a man page (or other imported legacy content). We are unable to automatically determine the license status of this page.