Help answer threads with 0 replies.
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 12-01-2005, 03:08 AM   #1
LQ Newbie
Registered: Oct 2005
Location: Berlin, Germany
Distribution: SUSE 10
Posts: 11

Rep: Reputation: 0
Mount --bind & NFS problem


On the server I have mounted some common directories into each user's home using the mount --bind option. This is working as required. When users ftp to their /home/user area they have access to the shared directories. Using Samba a single Home drive has all the personal & shared directories.

However, on the other Linux workstations mounting the home directory using NFS gives everything EXCEPT the shared directories from the server.

So, Is a mount --bind on the server exported to NFS? It would appear not. Am I missing something here?

I have it working at the moment by connecting to the shared directories using NFS & having a local workstation Mount --bind to put them in the home areas. This is a messy solution as on the local machines I must sort out all the NFS mounts. I also don't like this as Samba appears to work better than NFS, something that never sounds true!!

Old 12-02-2005, 12:15 PM   #2
Registered: Feb 2005
Location: Ontario, Canada
Distribution: Gentoo, Slackware
Posts: 345

Rep: Reputation: 30
From the NFS Howto page

It is not possible to export both a directory and its child (for example both /usr and /usr/local). You should export the parent directory with the necessary permissions, and all of its subdirectories can then be mounted with those same permissions.
So it looks like you're probably stuck mounting them individually.
And when you think about it, this makes sense from a security point of view, so that individual users can't export directories that they aren't supposed to be doing.
Old 12-02-2005, 12:25 PM   #3
LQ Newbie
Registered: Oct 2005
Location: Berlin, Germany
Distribution: SUSE 10
Posts: 11

Original Poster
Rep: Reputation: 0
Thanks for the reply. It answers my question as I had suspected..

However, it has now created a further query (not really a full blown question more advice).

I assume it is better to mount the high level directories (ie /home/user & /public) over NFS & then locally mount the subdirectories where I need them. I am assuming here that the fewer network connections (1 per user & 1 for public data) is better than lots of NFS mounts. Or does it not really matter (maybe Linux aggrigates the connections behind the scenes)


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
how to mount a nfs mount from linux client to AIX nfs server dennyqian AIX 13 04-11-2016 11:30 PM
NFS mount of smb mount of windows share: permission denied problem :( Bagatur Linux - Networking 4 07-07-2009 11:34 AM
Slow NFS Mount between Gentoo & FreeBSD Gsee Linux - Networking 3 10-23-2006 04:34 PM
mount --bind (fstab problem) renski Linux - General 2 11-17-2005 03:50 PM
Questions (remote control & mount --bind) DenShinobi Linux - Newbie 2 02-05-2002 09:57 PM > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 09:33 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