|
Follow up on NFS + automount. Instructions assume RHEL, fedora, or some other Red Hat based distro for all machines.
First, you need a server that will act as your 'home directory' server. This can be the same as the NIS server, or you might want a dedicated central storage server. On this machine, make sure you have nfs installed and running:
service nfs start
chkconfig nfs on
Edit /etc/exports, and export the home directory:
/home *(rw,sync)
You may want to replace the * with just the network that should have access, such as:
/home 192.168.1.0/24(rw,sync)
Run 'exportfs -r' to export the home directory.
Now, on the NIS client, set up automount to handle /home. In /etc/auto.master:
/home /etc/auto.home
And create /etc/auto.home with these contents:
* -rw,sync hostname.of.nfs.server:/home/&
Then restart autofs, and make sure it starts at boot:
service autofs restart
chkconfig autofs on
hope this helps!
|