Paul Rudin
2010-03-26 08:24:35 UTC
Not sure if this is the correct group for this... but still.
I'm a bit confused by the following behaviour. Here's the acl for a
file:
$ sudo nfs4_getfacl secure/test_file_01.odt
D::OWNER@:
A::OWNER@:rwaxTNCo
D:g:GROUP@:
A:g:GROUP@:rwax
D::EVERYONE@:waTC
A::EVERYONE@:rxtncy
We can see that this acl grants read access to everyone at . So I try to
read it as any old user:
$ tail secure/test_file_01.odt
tail: cannot open `secure/test_file_01.odt' for reading: Permission denied
It's been suggested to me that the acl for the containing directory is
relevant (although I don't understand why if this is so - I was under
the impression that the file's acl was all I needed to look at):
$ sudo nfs4_getfacl secure
D::OWNER@:
A::OWNER@:rwaxTNCo
D:g:GROUP@:
A:g:GROUP@:rwax
D::EVERYONE@:rwaxTC
A::EVERYONE@:tncy
Here we see that everyone@ is denied read access - but it's a permission
on a directory - so what this really means is that you can't list the
directory contents.
My question is... should I be able to read the file, and if not, why
not, given that the file's acl grants read access to everyone@?
FWIW the file system is actually hosted on a solaris 10 box (zfs) and mounted
on a linux box as type nfs4.
TIA.
I'm a bit confused by the following behaviour. Here's the acl for a
file:
$ sudo nfs4_getfacl secure/test_file_01.odt
D::OWNER@:
A::OWNER@:rwaxTNCo
D:g:GROUP@:
A:g:GROUP@:rwax
D::EVERYONE@:waTC
A::EVERYONE@:rxtncy
We can see that this acl grants read access to everyone at . So I try to
read it as any old user:
$ tail secure/test_file_01.odt
tail: cannot open `secure/test_file_01.odt' for reading: Permission denied
It's been suggested to me that the acl for the containing directory is
relevant (although I don't understand why if this is so - I was under
the impression that the file's acl was all I needed to look at):
$ sudo nfs4_getfacl secure
D::OWNER@:
A::OWNER@:rwaxTNCo
D:g:GROUP@:
A:g:GROUP@:rwax
D::EVERYONE@:rwaxTC
A::EVERYONE@:tncy
Here we see that everyone@ is denied read access - but it's a permission
on a directory - so what this really means is that you can't list the
directory contents.
My question is... should I be able to read the file, and if not, why
not, given that the file's acl grants read access to everyone@?
FWIW the file system is actually hosted on a solaris 10 box (zfs) and mounted
on a linux box as type nfs4.
TIA.