Did you know LQ has a Linux Hardware Compatibility List?
Go Back > Forums > Linux Forums > Linux - Networking
User Name
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.


  Search this Thread
Old 06-28-2012, 10:25 AM   #1
LQ Newbie
Registered: Jun 2012
Posts: 3

Rep: Reputation: Disabled
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?
Old 06-28-2012, 10:40 AM   #2
Senior Member
Registered: Nov 2006
Location: California
Distribution: Fedora , CentOS , RHEL
Posts: 1,948
Blog Entries: 1

Rep: Reputation: 190Reputation: 190
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



Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] NFS mount fails (times out): NFS server is in DMZ, NFS client is in intranet Hiroshi Linux - Networking 2 05-24-2010 10:22 AM
Manually created homedirs for ldap - cannot log on through X MheAd Linux - Server 3 12-04-2008 03:15 PM
NFS client = Linux, NFS server = Mac OS X Tiger --> Hell of a problem make Linux - Networking 9 03-10-2006 05:16 AM
Deny SSH-users to read filesystem, except their homedirs? Waerner Linux - Newbie 2 02-12-2006 07:44 AM
Apache forwarding users to their homedirs ashembers Linux - Newbie 5 06-17-2004 09:16 AM

All times are GMT -5. The time now is 04:46 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration