what is that "dot" means?

General support questions
Post Reply
simonleungxyz
Posts: 2
Joined: 2011/08/01 06:20:26

what is that "dot" means?

Post by simonleungxyz » 2011/08/01 06:25:29

Hi there,

I have just installed CentOS 6 for test and found that there is a difference on the bash shell; I see that there's an extra "dot" at the end of the ACL:

For example: rw-r--r--. , what does it mean for that "dot" ?

Thanks in advanced

markkuk
Posts: 739
Joined: 2007/09/07 10:56:28
Location: Finland

what is that "dot" means?

Post by markkuk » 2011/08/01 11:00:07

It means that the file has a SElinux context. Use "ls -Z" to see the actual SElinux context values. It's documented on the "info" file for GNU coreutils: http://www.gnu.org/software/coreutils/manual/html_node/What-information-is-listed.html#What-information-is-listed
The relevant quote:[quote]Following the file mode bits is a single character that specifies whether an alternate access method such as an access control list applies to the file. When the character following the file mode bits is a space, there is no alternate access method. When it is a printing character, then there is such a method.

GNU ls uses a ‘.’ character to indicate a file with an SELinux security context, but no other alternate access method.

A file with any other combination of alternate access methods is marked with a ‘+’ character. [/quote]

Post Reply