Networking Forums  

Go Back   Networking Forums > Networking Newsgroups > Linux Networking

NFS mount issue

Reply
 
Thread Tools Display Modes
  #1  
Old 04-12-2006, 05:16 PM
Default NFS mount issue



I have two Linux boxes, L1 and L2. L1 exports a number of directories so
that L2 can NFS mount them. One of those directories D in L1 is owned by
user U with uid N. On L2 I have the same user U, with the same uid N.

In L2 I am mounting all the directories exported by L1 (D, in particular)
from the root account. Everything's OK, with one exception: If D has
permissions drwx------ in L1, when mounted on L2 I can read its contents
when I am user U - but not if I am root.

Is it possible to export D so that, for all practical purposes, root in
L2 can have full access to D, just as root in L1 can? I am aware of the
potential security issues associated with this approach, but I want to do
this in my home network, where boxes trust each other.




Steven Jones
Reply With Quote
  #2  
Old 04-12-2006, 05:38 PM
Steven Jones
Guest
 
Posts: n/a
Default Re: NFS mount issue

On Wed, 12 Apr 2006 16:16:10 +0000, Steven Jones wrote:

> I have two Linux boxes, L1 and L2. L1 exports a number of directories so
> that L2 can NFS mount them. One of those directories D in L1 is owned by
> user U with uid N. On L2 I have the same user U, with the same uid N.
>
> In L2 I am mounting all the directories exported by L1 (D, in particular)
> from the root account. Everything's OK, with one exception: If D has
> permissions drwx------ in L1, when mounted on L2 I can read its contents
> when I am user U - but not if I am root.
>
> Is it possible to export D so that, for all practical purposes, root in
> L2 can have full access to D, just as root in L1 can? I am aware of the
> potential security issues associated with this approach, but I want to do
> this in my home network, where boxes trust each other.


Oops! Found it: no_root_squash export option. Nothing like posting a
question to the net in order to get the motivation to find the solution on
one's own.



Reply With Quote
Reply

Tags
issue, mount, nfs

Thread Tools
Display Modes

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 On
HTML code is Off
Forum Jump


All times are GMT. The time now is 12:12 PM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.