Eu tenho um cliente linux e um servidor freebsd nfs (NAS4free na verdade) O compartilhamento NFS é montado pelo fstab desta maneira:
server:/mnt/disk/ZHomeData on /data type nfs (rw,nosuid,relatime,vers=3,rsize=32768,wsize=32768,namlen=255,hard,proto=tcp,timeo=20,retrans=2,sec=sys,mountvers=3,mountport=705,mountproto=udp,local_lock=none)
No cliente e no servidor, tenho o mesmo UID e GUID
A permissão UID funciona bem, mas não consigo acessar arquivos ou diretórios nos quais apenas grupos correspondem.
Aqui está uma sessão de shell:
artiom@client /data/BACKUP % ls -l
total 1030151
drwx------ 2 artiom family 3 Feb 16 2014 Drivers
drwxr-x--- 5 yulia family 5 Jul 27 2014 mac
artiom@client /data/BACKUP % id
uid=1000(artiom) gid=1000(artiom) groups=1000(artiom),1001(family)
artiom@client /data/BACKUP % cd Drivers
artiom@client /data/BACKUP/Drivers
% cd ..
artiom@client /data/BACKUP % cd mac
cd: permission denied: mac
artiom@client /data/BACKUP %
[artiom@nfs /mnt/disk/ZHomeData/BACKUP]$ ls -l
total 1030151
drwx------ 2 artiom family 3 Feb 16 2014 Drivers
drwxr-x--- 5 1001 family 5 Jul 27 2014 mac
id artiom
uid=1000(artiom) gid=0(wheel) groups=0(wheel),80(www),1001(family)
[artiom@nfs /mnt/disk/ZHomeData/BACKUP]$ cd Drivers/
[artiom@nfs /mnt/disk/ZHomeData/BACKUP/Drivers]$ cd ..
[artiom@nfs /mnt/disk/ZHomeData/BACKUP]$ cd mac/
[artiom@nfs /mnt/disk/ZHomeData/BACKUP/mac]$