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),insecure_locks,no_subtree_check,rw,root_squash,anonuid=99,anongid=99,crossmnt,async)

and I'm mounting it on 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=,local_lock=none,addr=,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, 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.