Re: Weird permission

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



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
_______________________________________________
CentOS mailing list
CentOS@xxxxxxxxxx
http://lists.centos.org/mailman/listinfo/centos

[Index of Archives]     [CentOS]     [CentOS Announce]     [CentOS Development]     [CentOS ARM Devel]     [CentOS Docs]     [CentOS Virtualization]     [Carrier Grade Linux]     [Linux Media]     [Asterisk]     [DCCP]     [Netdev]     [Xorg]     [Linux USB]
  Powered by Linux