Date: Sun, 02 Dec 2001 21:11:19 +0100 From: Daniel Rock <D.Rock@t-online.de> To: current@freebsd.org Subject: Inconsistencies in *stat() for files with ACLs Message-ID: <3C0A8AE7.4CCD8B42@t-online.de>
next in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?3C0A8AE7.4CCD8B42>