nfs mount not working

Mark Haney mhaney at ercbroadband.org
Wed Aug 6 12:18:45 UTC 2008


Donny George wrote:
> 

> 
> hello mark
> 
> i guess i get the point. so you meant that i have to set the read write permission to all users. i am not an expert in ubuntu but i hope i get this basic part which u said
> 
> can i do it with chmod ogu=rwx i am not sure about this command is this the right one to set the rw permission to all users ?
> 
> donny
> 
> 
> 
> 


Not exactly.  Let me see if I can explain a little better.  The issue (I 
think, based on what you've told us) is that you have a user on System A 
that is trying to modify a file (via an NFS mount) on System B.  Keep in 
mind here that in effect user A is simply trying to change a file on 
System B.  If user A doesn't have /permission/ to change that file on 
System B he won't be able to.

The fact that NFS is set to RW gives him the capability to change the 
file, but only if he has the correct permissions to that file.

Does that make sense?  In effect the user accounts on System A and 
System B must be identical (not exactly, but or this, let's keep it 
simple) in order for this to work.  This means UIDs and GIDs.

If you have two user accounts 'Bob' (one on each system), and the UIDs 
don't match, then even though Bob can mount the filesystem via NFS, he 
won't be able to modify the file since the UIDs don't match.

Really, this isn't an NFS issue, so much as a file permissions issue ON 
THE SYSTEMS.

Do this, have that user log into the NFS server via ssh and see if he 
can modify the file that you are having trouble with.  If I'm right, he 
won't be able to that way either.

You know, after reading this to myself, I realize how crappy it sounds. 
  I'll be glad to work with you offlist since I deal with NFS a lot.


-- 
Libenter homines id quod volunt credunt -- Caius Julius Caesar


Mark Haney
Sr. Systems Administrator
ERC Broadband
(828) 350-2415

Call (866) ERC-7110 for after hours support




More information about the ubuntu-users mailing list