0

I have a nas (actually a readynas) exporting a data partition:

"/data/Documents" *(insecure,insecure_locks,no_subtree_check,crossmnt,anonuid=99,anongid=99,no_root_squash,ro,async) 192.168.1.4(insecure,insecure_locks,no_subtree_check,rw,root_squash,anonuid=99,anongid=99,crossmnt,async)

and I'm mounting it on 192.168.1.4 with the fstab line:

nas:/data/Documents /home/documenti nfs4 async,user,rw,auto,user 0 2

The mounted partition:

nas:/data/Documents on /home/documenti type nfs4 (rw,nosuid,nodev,noexec,relatime,vers=4.2,rsize=131072,wsize=131072,namlen=255,hard,proto=tcp,timeo=600,retrans=2,sec=sys,clientaddr=192.168.1.4,local_lock=none,addr=192.168.1.11,user)

Now, on the nas, I have the Bilancio dir inside the partition with the following uid/gid/permissions:

vdir -n /data/Documents/AAAA\ Cornigliano/Amministrazione
total 1724
drwxrwx---+ 1 1000 1500     706 Mar 30 17:27 Bilancio

On 192.168.1.4, it's seen correctly:

$ vdir -n  ../documenti/AAAA\ Cornigliano/Amministrazione
totale 1724
drwxrwx--- 1 1000 1500     706 mar 30 17:27 Bilancio

However, an user with uid!=1000 which belongs to the gid=1500 group gets:

$ vdir -n  ../documenti/AAAA\ Cornigliano/Amministrazione/Bilancio/
vdir: cannot open directory '../documenti/AAAA Cornigliano/Amministrazione/Bilancio/': Permission denied

Why does it happen? the rwx permissions for the git=1500 group should be used!

Could it happen that some acl settings on the nas prevale on the chmod ones?

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.