|
||||||||
|
|
#1
|
|
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 |
|
#2
|
|||
|
|||
|
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. |
![]() |
| Tags |
| issue, mount, nfs |
| Thread Tools | |
| Display Modes | |
|
|