[CentOS] Weird permission
Stephen Harris
lists at spuddy.org
Fri Jul 31 10:42:28 UTC 2009
On Fri, Jul 31, 2009 at 05:46:53AM -0400, Mike A. Harris wrote:
> IIRC, the "." at the end of the permissions indicates that the file has
> additional permission controls beyond the standard DAC bits, such as
> filesystem ACLs, filesystem capabilities, or other attributes.
FACLs are normally indicated by a + at the end of the permissions.
$ ls -ld .
drwxr-xr-x 2 sweh sweh 4096 Jul 31 06:38 ./
$ setfacl -m user:named:- .
$ ls -ld .
drwxr-xr-x+ 2 sweh sweh 4096 Jul 31 06:38 ./
[note the +]
$ getfacl .
# file: .
# owner: sweh
# group: sweh
user::rwx
user:named:---
group::r-x
mask::r-x
other::r-x
Attributes ("chattr") don't get shown by any special character
$ ls -ld .
drwxr-xr-x 2 sweh sweh 4096 Jul 31 06:41 ./
$ chattr +d .
$ ls -ld .
drwxr-xr-x 2 sweh sweh 4096 Jul 31 06:41 ./
$ lsattr -ad .
------d------ .
--
rgds
Stephen
More information about the CentOS
mailing list