From owner-freebsd-current Sun Dec 2 12:14: 2 2001 Delivered-To: freebsd-current@freebsd.org Received: from mailout05.sul.t-online.de (mailout05.sul.t-online.com [194.25.134.82]) by hub.freebsd.org (Postfix) with ESMTP id F28DD37B432 for ; Sun, 2 Dec 2001 12:13:53 -0800 (PST) Received: from fwd02.sul.t-online.de by mailout05.sul.t-online.de with smtp id 16Aczp-0006He-06; Sun, 02 Dec 2001 21:13:53 +0100 Received: from server.rock.net (340029380333-0001@[217.226.120.200]) by fmrl02.sul.t-online.com with esmtp id 16Aczc-211CbIC; Sun, 2 Dec 2001 21:13:40 +0100 Received: from t-online.de (server [172.23.7.1]) by server.rock.net (8.12.1/Rock) with ESMTP id fB2KBJU3076885 for ; Sun, 2 Dec 2001 21:11:19 +0100 (MET) Message-ID: <3C0A8AE7.4CCD8B42@t-online.de> Date: Sun, 02 Dec 2001 21:11:19 +0100 From: Daniel Rock X-Mailer: Mozilla 4.76 [de] (X11; U; SunOS 5.8 i86pc) X-Accept-Language: de, en MIME-Version: 1.0 To: current@freebsd.org Subject: Inconsistencies in *stat() for files with ACLs Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Sender: 340029380333-0001@t-dialin.net Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Hi, lstat(), fstat(), stat() returned structure is inconsistent and misleading if the file has ACLs associated with it. Example: % getfacl test #file:test #owner:0 #group:4004 user::rw- group::r-- group:wheel:rw- mask::rw- other::r-- So the file has permissions rw-r--r--, but an additional group "wheel" has write permissions. But ls output suggests: % ls -l test -rw-rw-r-- 1 root rock 4 2 Dez 21:00 test that the primary group has these write permissions. But: % id uid=4024(rock) gid=4004(rock) % echo test >> test test: Permission denied. Daniel To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message