[juneau-lug] Re: nfs permissions

  • From: Mark Neyhart <Mark_Neyhart@xxxxxxxxxxxxxxxxx>
  • To: "juneau-lug@xxxxxxxxxxxxx" <juneau-lug@xxxxxxxxxxxxx>
  • Date: Mon, 07 Feb 2011 11:19:19 -0900

Jamie wrote:
> 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:
> 192.168.0.7:/samba/archive    /mnt/jb7/archive    nfs    
> rsize=8192,wsize=8192,timeo=14,intr
> 
> 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.
> ------------------------------------
Could your group number for smbusr on your nfs client be out of sync
with the group number for smbusr on your nfs host?  Is the output of

id -G

the same when run as jamie on both machines?
------------------------------------
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: