ACLs, permission mask and chmod g=

Svein Halvor Halvorsen svein.h at
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?

	Svein Halvor

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 255 bytes
Desc: OpenPGP digital signature
Url :

More information about the freebsd-questions mailing list