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?

        Svein Halvor

Attachment: signature.asc
Description: OpenPGP digital signature

Reply via email to