What does a dot after the file permission bits mean?

I performed an ls -la on directory on my CentOS 6.4 server here and the permissions for a given file came out as:

-rwxr-xr-x.

I understand what -rwxr-xr-x means, what I don’t understand is the . after the last attribute.

Can someone explain it to me? Is it harmful in any way? Can it be removed?

Answers:

Thank you for visiting the Q&A section on Magenaut. Please note that all the answers may not help you solve the issue immediately. So please treat them as advisements. If you found the post helpful (or not), leave a comment & I’ll get back to you as soon as possible.

Method 1

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

— From ls man page (info coreutils 'ls invocation').

Method 2

To see the actual security context applied to the file run this:

ls -Z

The security contexts can be assigned to a file even having SELinux disabled. You can check your security context with this:

id -Z

If SELinux is disabled you will get this message:

id: --context (-Z) works only on an SELinux-enabled kernel


All methods was sourced from stackoverflow.com or stackexchange.com, is licensed under cc by-sa 2.5, cc by-sa 3.0 and cc by-sa 4.0

0 0 votes
Article Rating
Subscribe
Notify of
guest

0 Comments
Oldest
Newest Most Voted
Inline Feedbacks
View all comments
0
Would love your thoughts, please comment.x
()
x