Quote:
Originally Posted by bruno.vila
I have configured the home dirs from the users in my network like this:
/home/company/managers/user1
/home/company/managers/user2
/home/company/sales/user3
......
How can I export theese home dirs by NFS and mount them in the clients with autofs?
|
Well first you have to export these directories to network on the server side. Open the /etc/exports file and place enteries like
Code:
/home/company/managers/user1 <IPaddress or network>(r[w/o],no_root_squash)
/home/company/managers/user2 <IPaddress or network>(r[w/o],no_root_squash)
/home/company/sales/user3 <IPaddress or network>(r[w/o],no_root_squash)
Then use /usr/sbin/exportfs -a command to export the shares.
Now on the client you need to automount the nfs shares. Place an entry like following in your /etc/auto.misc file
Code:
nfs -fstype=nfs,intr <NFS server IP>:/home/company/managers/user1
nfs -fstype=nfs,intr <NFS server IP>:/home/company/managers/user2
nfs -fstype=nfs,intr <NFS server IP>:/home/company/sales/user3
Hope this helps.