Review your favorite Linux distribution.
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 10-21-2008, 12:13 PM   #1
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 01:06 PM.
Old 10-21-2008, 02:22 PM   #2
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

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


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 03:02 PM
FC6 broken with NFS-mounted /home directories? skellert Fedora 2 11-02-2006 10:37 PM
NFS Home directories for laptops IndustrialGeek Linux - Newbie 1 05-20-2004 09:27 AM
NIS/NFS and sharing home directories grebo Linux - Networking 1 09-21-2001 11:21 PM
NFS mounting directories 98steve600 Linux - General 1 01-24-2001 06:26 PM > Forums > Linux Forums > Linux - Networking

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

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