From owner-freebsd-questions@FreeBSD.ORG Fri Aug 8 14:44:15 2008 Return-Path: Delivered-To: questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 54937106564A for ; Fri, 8 Aug 2008 14:44:15 +0000 (UTC) (envelope-from svein.h@lvor.halvorsen.cc) Received: from bene2.itea.ntnu.no (bene2.itea.ntnu.no [IPv6:2001:700:300:3::57]) by mx1.freebsd.org (Postfix) with ESMTP id 8AFBD8FC18 for ; Fri, 8 Aug 2008 14:44:14 +0000 (UTC) (envelope-from svein.h@lvor.halvorsen.cc) Received: from localhost (localhost [127.0.0.1]) by bene2.itea.ntnu.no (Postfix) with ESMTP id 75AD190003 for ; Fri, 8 Aug 2008 16:44:12 +0200 (CEST) Received: from maren.thelosingend.net (maren.math.ntnu.no [129.241.211.48]) by bene2.itea.ntnu.no (Postfix) with SMTP id EFECF90001 for ; Fri, 8 Aug 2008 16:44:05 +0200 (CEST) Received: (qmail 24616 invoked by uid 88); 8 Aug 2008 16:43:54 +0200 Received: from maren.math.ntnu.no (HELO weld.ej2.thelosingend.net) (129.241.211.48) by maren.thelosingend.net (qpsmtpd/0.31.1) with ESMTP; Fri, 08 Aug 2008 16:43:54 +0200 Message-ID: <489C5BAE.6010205@lvor.halvorsen.cc> Date: Fri, 08 Aug 2008 16:43:58 +0200 From: Svein Halvor Halvorsen User-Agent: Thunderbird 2.0.0.9 (X11/20080315) MIME-Version: 1.0 To: questions@freebsd.org X-Enigmail-Version: 0.95.0 OpenPGP: id=9198BB40; url=mailto:pgpkey@svein.halvorsen.cc Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="------------enig6780E7ECABB5EE87B842D650" X-Virus-Scanned: Debian amavisd-new at bene2.itea.ntnu.no Cc: Subject: ACLs, permission mask and chmod g= X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 08 Aug 2008 14:44:15 -0000 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--