Re: getfacl doesn't show same output as ls?
Scott Mcdermott <[email protected]> Mon, 7 Jun 2004 22:51:40 -0400
| Newsgroups | gmane.linux.file-systems.acl.devel |
|---|---|
| Message-ID | <[email protected]> |
David Kleikamp on Mon 7/06 21:33 -0500: > On Mon, 2004-06-07 at 21:08, Scott Mcdermott wrote: > > $ getfacl thistestfile > > # file: thistestfile > > # owner: smcdermott > > # group: qdn > > user::rw- > > user:smcdermott:rwx #effective:rw- > > group::r-x #effective:r-- > > mask::rw- > > other::r-- > > > > $ ls -l thistestfile > > -rw-rw-r--+ 1 smcdermott qdn 0 Jun 7 19:59 > > thistestfile > > > > I do not understand why `ls -l' shows ACL_GROUP_OBJ having > > the write bit, but the "group::r-x" in getfacl(1) shows it > > without? > > The group permissions in 'ls -l' show the ACL_MASK rather > than ACL_GROUP_OBJ. The man page mentions this under the > section "CORRESPONDENCE BETWEEN ACL ENTRIES AND FILE > PERMISSION BITS". I read that about six times and did not see it, thank you for pointing it out. using the group bits for ACL_MASK is a somewhat bizarre change from ordinary permissions...I take it the reason for this is because the mask is deemed more useful / common to want to see in an ordinary `ls' output without having to invoke `getfacl' ? _______________________________________________ acl-devel mailing list [email protected] http://acl.bestbits.at/mailman/listinfo/acl-devel