The dot after file permissions in ‘ls’ long output denotes that the file in question has a SELinux security context, no matter if SELinux is enabled or not:
Code:
bash code
[root@backup /]# sestatus SELinux status: disabled [root@backup /]# ls -ald /lib dr-xr-xr-x. 8 root root 4096 Feb 14 16:45 /lib [root@backup /]# ls -Zd /lib dr-xr-xr-x. root root system_u:object_r:lib_t:s0 /lib [root@backup /]# [root@backup /]# ls -ald /srv drwxr-xr-x 9 root root 4096 May 8 15:37 /srv [root@backup /]# ls -Zd /srv drwxr-xr-x root root ? /srv [root@backup /]#
[ad type=”banner”]
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’).
This basically implies that the file has an Access Control List (ACL) with SELinux.
You can set or delete ACL association for a file by using the setfacl command
Wikitechy Founder, Author, International Speaker, and Job Consultant. My role as the CEO of Wikitechy, I help businesses build their next generation digital platforms and help with their product innovation and growth strategy. I'm a frequent speaker at tech conferences and events.
incredible!!