The NFS DaemonsLinux Network Administrators GuidePrevChapter 14. The NetworkFile SystemNextThe NFS Daemons
If you want to provide NFS service to other hosts, you have to run the
rpc.nfsd and rpc.mountd daemons on your
machine. As RPC-based programs, they are not managed by
inetd, but are started up at boot time and register
themselves with the portmapper; therefore, you have to make sure to start them
only after rpc.portmap is running. Usually, you'd use
something like the following example in one of your network boot scripts:
if [ -x /usr/sbin/rpc.mountd ]; then
/usr/sbin/rpc.mountd; echo -n " mountd"
fi
if [ -x /usr/sbin/rpc.nfsd ]; then
/usr/sbin/rpc.nfsd; echo -n " nfsd"
fi
The ownership information of the files an NFS daemon provides to its clients
usually contains only numerical user and group IDs. If both client and server
associate the same user and group names with these numerical IDs, they are
said to their share uid/gid space. For example, this is the case when you
use NIS to distribute the passwd information to all
hosts on your LAN.On some occasions, however, the IDs on different hosts do not
match. Rather than updating the uids and gids of the client to match
those of the server, you can use the rpc.ugidd
mapping daemon to work around the disparity. Using the map_daemon option explained a little later, you can
tell rpc.nfsd to map the server's uid/gid space to
the client's uid/gid space with the aid of the
rpc.ugidd on the client. Unfortunately, the
rpc.ugidd daemon isn't supplied on all modern Linux
distributions, so if you need it and yours doesn't have it, you will need to
compile it from source.rpc.ugidd is an RPC-based server that is started from your
network boot scripts, just like rpc.nfsd and
rpc.mountd:if [ -x /usr/sbin/rpc.ugidd ]; then
/usr/sbin/rpc.ugidd; echo -n " ugidd"
fiPrevHomeNextMounting an NFS VolumeUpThe exports File
Wyszukiwarka
Podobne podstrony:
x 087 2 nfs exportsx 087 2 nfs mountdx 087 2 nfsx 087 2 nfsx 087 2 nfs kernelv2x 087 2 nfs kernelv3x 087 2 cnews nfsx 087 2 accounting zeroing counterx 087 2 cnews miscInstrukcja do NFS MW BEnfs root client pl 1x 087 2 mail deliverynfs root 2 kz5wszui24iee4hdudlvapjuh2nz4jthzoaolcq kz5wszui24iee4hdudlvapjuh2nz4jthzoaolcqx 087 2 masq namelookupsx 087 2 firewall filteringmethodsx 087 2 accountingx 087 2 firewall filteringwięcej podobnych podstron