I ran ls
and found a directory that has the +
bit set:
$ ls -ld /var/log/journal
drwxr-sr-x+ 3 root systemd-journal 4096 Oct 1 01:23 /var/log/journal
I understand drwxr-sr-x
, but what is +
? What is it called? What does it do?
I ran ls
and found a directory that has the +
bit set:
$ ls -ld /var/log/journal
drwxr-sr-x+ 3 root systemd-journal 4096 Oct 1 01:23 /var/log/journal
I understand drwxr-sr-x
, but what is +
? What is it called? What does it do?
It means there's an ACL associated with the entry.
eg
$ ls -ld X
drwxr-xr-x 2 sweh sweh 4096 Feb 16 20:06 X/
$ setfacl -m u:root:rwx X
$ ls -ld X
drwxrwxr-x+ 2 sweh sweh 4096 Feb 16 20:06 X/
$
You can read the ACL with the getfacl
command:
$ getfacl X
# file: X
# owner: sweh
# group: sweh
user::rwx
user:root:rwx
group::r-x
mask::rwx
other::r-x
info coreutils ls
, the +
indicates a file with "any other combination of alternate access methods" other than SELinux.
– fpmurphy
Feb 17 '19 at 02:00