ACLs, permission mask and chmod g=
Svein Halvor Halvorsen
svein.h at lvor.halvorsen.cc
Fri Aug 8 14:44:15 UTC 2008
If I have acls enabled on a file, running chmod g=rw on that file,
will not change its group permissions, but the acl mask.
That is, running the following command:
$ chmod g=rw foo
... is equivalent with
$ setfacl -m m::rw-
... and not, as I would suspect:
$ setfacl -m g::rw-
In other words, foo will not be read/writable by its default group
after the command have been run (unless it was already).
I find this behaviour to be very confusing. It might be the correct
bahaviour, but if so maybe the chmod(1) manpage, and possibly
chmod(2), should be updated to document this?
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 255 bytes
Desc: OpenPGP digital signature
Url : http://lists.freebsd.org/pipermail/freebsd-questions/attachments/20080808/423b2cbf/signature.pgp
More information about the freebsd-questions