[Lvlug] NFS: Can read but not write files

Randy Kramer rhkramer at gmail.com
Sun Jul 3 16:40:52 EDT 2005


On Sunday 03 July 2005 09:17 am, Martin DiViaio wrote:
> Under what user are you running the mount command on the client? Is it the
> same user that owns the files on the server? 

Just to be nitpicky (or something): should that really matter?  I've been 
doing it as root, and am now successful reading and writing under my userid 
(while using no_root_squash)--will I be unsuccessful if if I switch to 
root_squash and still do the mount as root?  (I presume that during a boot, 
mounts are done by root.)

> If you are using standard 
> permissions (i.e. 644/755) then no user other than the owner of those
> files can write across the network (this includes root). 

I understand the above, but as stated/implied in the first comment above, 
would be surprised/disappointed if mounts during boot did not work properly.

> You can set up 
> /etc/exports to masquerade as certain user when the file system is
> mounted. See the exports(5) man page.

That's helpful.  In the other reading I had done I hadn't found anything about 
how to masquerade as a different user in NFS--I don't read manpages as often 
as I should--it used to be because they seemed like greek to me--now more of 
them make sense--I just need to start reading more of them.

regards,
Randy Kramer


More information about the Lvlug mailing list