what means a dash (.) in the end of the permission of a directory

Issues related to applications and software problems and general support
Post Reply
ressoussi
Posts: 1
Joined: 2021/11/05 14:17:23

what means a dash (.) in the end of the permission of a directory

Post by ressoussi » 2021/11/05 14:49:56

Hello,

on a directory i have this persmission "drwxr-xr-x."

I don't understant what mean the (.) in the end.

Can someone explain to me please?

Thanx

User avatar
TrevorH
Site Admin
Posts: 33219
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: what means a dash (.) in the end of the permission of a directory

Post by TrevorH » 2021/11/05 17:49:31

It means the file has extended attributes and usually that means it's selinux information.
The future appears to be RHEL or Debian. I think I'm going Debian.
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 and 6 are deadest, do not use them.
Use the FAQ Luke

User avatar
jlehtone
Posts: 4530
Joined: 2007/12/11 08:17:33
Location: Finland

Re: what means a dash (.) in the end of the permission of a directory

Post by jlehtone » 2021/11/08 09:33:38

From info '(coreutils) ls invocation' (section What information is listed::):
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 a security
context, but no other alternate access method.

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

sml
Posts: 305
Joined: 2020/01/17 09:01:44

Re: what means a dash (.) in the end of the permission of a directory

Post by sml » 2021/11/09 09:17:40

A relatively easy way to directly arrive at that part of the coreutils info manual is

Code: Select all

info ls --index-search='permissions, output by ls'
You may abbreviate the index term as long as it stays unambiguous. Try

Code: Select all

info ls --index-search=permissions,\ o

Post Reply