From owner-freebsd-questions@FreeBSD.ORG Fri Aug 8 22:36:23 2008 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id D66F1106566B for ; Fri, 8 Aug 2008 22:36:23 +0000 (UTC) (envelope-from bounces@nabble.com) Received: from kuber.nabble.com (kuber.nabble.com [216.139.236.158]) by mx1.freebsd.org (Postfix) with ESMTP id A5A0D8FC0A for ; Fri, 8 Aug 2008 22:36:23 +0000 (UTC) (envelope-from bounces@nabble.com) Received: from isper.nabble.com ([192.168.236.156]) by kuber.nabble.com with esmtp (Exim 4.63) (envelope-from ) id 1KRaZK-00044q-RQ for freebsd-questions@freebsd.org; Fri, 08 Aug 2008 15:36:22 -0700 Message-ID: <18900042.post@talk.nabble.com> Date: Fri, 8 Aug 2008 15:36:22 -0700 (PDT) From: acmeinc To: freebsd-questions@freebsd.org In-Reply-To: <489CC8BB.9060607@lvor.halvorsen.cc> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Nabble-From: akme.inc@gmail.com References: <489C5BAE.6010205@lvor.halvorsen.cc> <18899706.post@talk.nabble.com> <489CC8BB.9060607@lvor.halvorsen.cc> Subject: Re: 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 22:36:23 -0000 One last thing.... have you tried; setfacl -s i notice you have -m in your original post. Other than this, I won't have any other insight. Svein Halvor Halvorsen-4 wrote: > > acmeinc wrote: >> You may consider trying chmod 660 filename. > > It gives the same result. When changing group permission (either > way) on a file with acls, you're effectively changing the acl mask > instead. Also, if I change acl mask with setfacl, then ls -l will > list the permission mask in the group columns in the output. > > If this is by design, then it isn't documented in chmod(1) (or > anywhere else that I can see). > > It kinda makes sense this way, though. If you chmod the group > permission, you change all groups' permissions. But I'd like to see > it documented, as it caused me some confusion, and I still think > that this isn't obvious. > > >> Svein Halvor Halvorsen-4 wrote: >>> 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 >>> >>> >>> >>> >> > > > > > -- View this message in context: http://www.nabble.com/ACLs%2C-permission-mask-and-chmod-g%3D-tp18893185p18900042.html Sent from the freebsd-questions mailing list archive at Nabble.com.