You are not logged in.

#1 2006-11-24 20:01:46

LB06
Member
From: The Netherlands
Registered: 2003-10-29
Posts: 435

Bug in ACL or ls?

Hi,

Lately I've been experimenting with ACL's a lot. It works great. ACL is a very nice addition to the traditional yet inflexible UNIX/POSIX permission system without having to jump to MAC.

But I think I've found something really strange while experimenting:

touch file
chmod 600 file
setfacl -m u:nobody:--x file
getfacl file
ls -lh file

After setting any ACL for any user or group getfacl shows that the result is correct, but when I view the file with ls I get this:

-rw---x--- 1 user wheel 0 nov 24 20:49 file

Note the executable bit on the group! So it seems that the permissions for a group are overwritten by the ACL :s

I tried this on serveral pc's servers with different filesystems and different distro's, so the problem seems to be with ACL or with the ls command.

Or did I miss something and is this how the permissions are supposed to be displayed?

Offline

Board footer

Powered by FluxBB