Monday, March 12, 2007

Allow Clients Access to Home Directories on Server

Home directories are usually maintained in a central location. In most cases, that would be the server. The clients workstations must have access to the home directories on the server. Here is a quick and dirty way of doing it.

Add the following lines to the dfstab file
# vi /etc/dfs/dfstab
share -F nfs -o rw=client1:client2:client3:client4:client5,root=client1:client2:client3:client4:client5 -d "The home directories on the server" /export/home
:wq! (saves and quits vi)

It is assumed the host information for server and clients is included in files, nis, nis+ or whatever naming service you are using.

Next we need to share it out
# shareall

# vi /etc/auto_home
* server:/export/home/&
+auto_home
:wq! (saves and quits vi)

# vi /etc/auto_master
/home auto_home -nosuid,nobrowse
:wq! (saves and quits vi)

#automount -v

Login from the workstation

No comments: