LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 10-21-2008, 01:13 PM   #1
RexCoeus
Member
 
Registered: Jul 2007
Location: Cantina on Mos Eisley
Distribution: Slackware, Ubuntu
Posts: 39

Rep: Reputation: 15
Mounting NFS home directories


I am trying to find a way to mount a single users home directory with NFS. Here is an example:

I have a centralized server that contains each users home directory stored in /home/(username) - Instead of mounting the entire home directory to each client computer, which would in turn show every other users home directory (although I realize with proper fs security it wont be a major issue), I want each client to only show the logged in users home directory. Can I use a wildcard? such as ... server:/home/$user /home/$user nfs defaults 0 0

I appreciate any help

Last edited by RexCoeus; 10-21-2008 at 02:06 PM.
 
Old 10-21-2008, 03:22 PM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,414

Rep: Reputation: 1967Reputation: 1967Reputation: 1967Reputation: 1967Reputation: 1967Reputation: 1967Reputation: 1967Reputation: 1967Reputation: 1967Reputation: 1967Reputation: 1967
well as you point out, proper file permission administration makes your concerns dissappear. in most implementations this is what happens, there really is no need to be as concerned as you are. Private enterprise projects I work on do this, commercial shell providers do this. if you want to mount on demand you would probably want to look at autofs to mount a directory based on a directory path, as without something which would provide a more worrying security hole (e.g sudo commands to mount in every users .profile) you aren't going to be able to have what you want. unix file permissions are the roxxorz. don't reinvent the wheel.
 
  


Reply


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
autofs nfs mounting home directories question extendedping Linux - Networking 3 01-30-2008 04:02 PM
FC6 broken with NFS-mounted /home directories? skellert Fedora 2 11-02-2006 11:37 PM
NFS Home directories for laptops IndustrialGeek Linux - Newbie 1 05-20-2004 10:27 AM
NIS/NFS and sharing home directories grebo Linux - Networking 1 09-22-2001 12:21 AM
NFS mounting directories 98steve600 Linux - General 1 01-24-2001 07:26 PM


All times are GMT -5. The time now is 01:10 AM.

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