-   Linux - Networking (
-   -   nfs homedirs (

bruno.vila 06-28-2012 10:25 AM

nfs homedirs
I have the following structure for the home dirs of users



how can I export theese home dirs and mount them in clients with autofs?

custangro 06-28-2012 10:40 AM

It would help if you mention what OS you're using...

But this is how you'd do it on a Red Hat based system (RHEL/CentOS/Fedora...)

Export the "/home" dir as an NFS share...edit the "/etc/export" file and share it out to your network...


And start the NFS services


root@host# service nfs restart
root@host# chkconfig nfs on

Edit the /etc/auto.master and add this

/rhome /etc/auto.rhome --timeout=60

Create the /etc/auto.rhome file and add this (where is your NFS server)


*        -rw,soft,intr
Start autofs and make sure it starts on boot


root@host# service autofs restart
root@host# chkconfig autofs on

Now make sure all your users have "/rhome/username" set as their homedir in the /etc/passwd file

All times are GMT -5. The time now is 10:50 PM.