2011-04-13 02:29 AM
Basically trying to test\understand NFS permissions. Performed following
1- Exported a Unix style Qtree to a Linux host
2 - Created 2 users (A and B) on Linux. Both member of adm group on Linux
3 - Switched user to A and created a directory (A_dir). Changed permission of directory to 700 (only owner has permissions)
4 - Switched user to B and tried moving\reading to directory (A_dir). Got permissions denied which makes sense as user B don't have permissions
5 - Then tried deleting directory and deleted successfully although user B don't have permissions.
Any idea what is reason of this behavior? There is no LDAP and NIS configured so don't know how filer handles users A and B from Linux host. How can I find that?
2011-04-13 03:18 PM
The posted link covers ntfs security qtrees/volumes and does not apply to you.
The parent directory (where A_dir is) is writable by user B. When you were trying to do stuff in A_dir, you couldn't because A_dir's permissions were too restrictive. Removing the directory is an operation in the parent directory, not the directory you're trying to remove, so the parent directories permissions govern. A bit goofy, yes....
2011-04-14 02:53 AM
Thanks for reply.
Deletion without permission only happens when you perform above step on a directory on filer (mount). If you perform above steps for a directoy on Linux server, permissions works fine (i.e. you are not able to delete dir for which you don't have permissions) even though parent directory has permissions for all users.
2011-04-14 09:08 AM
That is interesting. On my Redhat 5.5 boxes I can remove dirs without permissions, as long as I have permissions to the parent dir. What OS are you running? I'm assuming no sticky bits, no extended file attributes, and so selinux? Also assuming none of your test users are root?