[juneau-lug] nfs permissions

  • From: Jamie <jamie@xxxxxxxxxxxxxxxxx>
  • To: juneau-lug@xxxxxxxxxxxxx
  • Date: Mon, 07 Feb 2011 08:17:09 -0900

Another puzzle - a group on my home LAN called "smbusr" should have 
write access to an NFS share, but fails for unknown reasons:
> jamie@JB13:~$ groups
> jamie adm dialout fax cdrom floppy tape sudo audio dip video plugdev 
> fuse lpadmin netdev admin sambashare vmusers smbusr
User "jamie" is a member of group "smbusr".
> jamie@JB13:~$ ls -dl /opt/test/
> drwxrwxr-x 2 root smbusr 4096 2011-01-06 08:09 /opt/test/
> jamie@JB13:~$ touch /opt/test/testfile
Local directory /opt/test has 775 permissions and successfully allows 
file creation.
> jamie@JB13:~$ ls -dl /mnt/jb7/archive/test
> drwxrwxr-x 2 root smbusr 4096 2010-12-14 09:53 /mnt/jb7/archive/test
> jamie@JB13:~$ touch /mnt/jb7/archive/test/testfile
> touch: cannot touch `/mnt/jb7/archive/test/testfile': Permission denied
NFS share mounted at /mnt/jb7/archive also has 775 permissions but 
forbids file creation.  Why?

It has something to do with running Ubuntu 10.4 because this problem 
doesn't occur under Fedora (9,10,12 or 13).  I can simply reboot to 
Fedora with the same fstab and there is no problem writing to the 
share.  The entry in fstab reads:    /mnt/jb7/archive    nfs    

Maybe something to do with GID being < 1000?  Users and groups began at 
500 under Fedora and my other previously used distro's.  Ubuntu starts 
numbering at 1000.

Ideas and suggestions welcome.
The Juneau Linux Users Group -- http://www.juneau-lug.org
This is the Juneau-LUG mailing list.
To unsubscribe, send an e-mail to juneau-lug-request@xxxxxxxxxxxxx with the 
word unsubscribe in the subject header.

Other related posts: