2011-08-04 01:33:03

by Vinay Venkataraghavan

[permalink] [raw]
Subject: NFS root squash option

Hello everybody,

I've run into a problem regarding exporting a share on linux with the root_squash option set. The problem is that on the client side I mount this share as root but the process I'd like to expose some files to run as root.

But since the root_squash option is set, the process running as root, does not have access to the file.

Is there anyway around this problem.


What I'd like to achieve is be able to have this process running as root be able to access the files on this share. Any help in this matter would be greatly appreciated. I've been scouring the web and the man pages etc and have come up with nothing.

I do have a few ideas:

1. Is it possible to mount the share providing the userid which is allowed to access the shares? If so how do I set this up as I can't find any options in the linux mount command.

2. Is it possible that I could add this process to some group which has permissions to access the files on this share. And then subsequently setup the nfs server side to be able to provide access to users in this group id?

Thanks in advance.
- Vinay