我找到了一些Linux文件,当我输入ls -lah
时,它会输出以下权限格式:
...
drwxr-xr-x. 2 root root
...
-rw-rw-r--. 1 root root
...
我想知道在权限格式结束时dot(-rw-rw-r--。)的含义是什么?
答案 0 :(得分:6)
来自Linux下的info coreutils 'ls invocation'
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.
答案 1 :(得分:3)
来自what information is listed下的GNU.org:
GNU ls uses a ‘.’ character to indicate a file with a SELinux security context, but no other alternate access method.
这基本上意味着该文件具有带SELinux的Access Control List (ACL)。您可以使用setfacl
命令
答案 2 :(得分:2)
根据Filesystem permissions wiki page,点表示存在SELinux上下文。