LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices

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

Rep: Reputation: Disabled
nfs homedirs


I have the following structure for the home dirs of users

Code:
/home
  |-somedir
       |-school1
           |-user1
           |-user2
            ......
           |-userN
       |-school2
           |-userk1
           |-userk2
            ......
           |-userkN
how can I export theese home dirs and mount them in clients with autofs?
 
Old 06-28-2012, 10:40 AM   #2
custangro
Senior Member
 
Registered: Nov 2006
Location: California
Distribution: Fedora , CentOS , Solaris 10, RHEL
Posts: 1,935
Blog Entries: 1

Rep: Reputation: 188Reputation: 188
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...

Code:
/home	192.168.1.0/24(rw,no_root_squash)
And start the NFS services

Code:
root@host# service nfs restart
root@host# chkconfig nfs on
Edit the /etc/auto.master and add this

[code]
/rhome /etc/auto.rhome --timeout=60
[code]

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

Code:
*	-rw,soft,intr	192.168.1.10:/home/school1/&
Start autofs and make sure it starts on boot

Code:
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
 
  


Reply

Tags
nfs


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 09:44 PM.

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