Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 08 Aug 2008 16:43:58 +0200
From:      Svein Halvor Halvorsen <svein.h@lvor.halvorsen.cc>
To:        questions@freebsd.org
Subject:   ACLs, permission mask and chmod g=
Message-ID:  <489C5BAE.6010205@lvor.halvorsen.cc>

next in thread | raw e-mail | index | archive | help
This is an OpenPGP/MIME signed message (RFC 2440 and 3156)
--------------enig6780E7ECABB5EE87B842D650
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable

If I have acls enabled on a file, running chmod g=3Drw on that file,
will not change its group permissions, but the acl mask.

That is, running the following command:
	$ chmod g=3Drw foo

=2E.. is equivalent with
	$ setfacl -m m::rw-

=2E.. 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


--------------enig6780E7ECABB5EE87B842D650
Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: OpenPGP digital signature
Content-Disposition: attachment; filename="signature.asc"

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (FreeBSD)
Comment: mailto:pgpkey@svein.halvorsen.cc to get my PGP-key

iEYEARECAAYFAkicW7IACgkQhQg3vZGYu0BSWACg0Fd8FwPyl0YwS96c7jy9K3RO
qmIAn1dxWJaRFn+ZDqLu+6B70XaMFw5t
=er8t
-----END PGP SIGNATURE-----

--------------enig6780E7ECABB5EE87B842D650--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?489C5BAE.6010205>