我们有脚本查看ls -l输出的输出,以获取最近在RHEL v6系统上出现故障的权限信息,这些系统似乎显示了额外的信息. 在以前不曾使用的许可条目的末尾:
[root@rhel6vm ~]# ls -l total 44 -rw-------. 1 root root 1399 Aug 17 15:01 anaconda-ks.cfg -rw-r--r--. 1 root root 25485 Aug 17 15:01 install.log -rw-r--r--. 1 root root 7253 Aug 17 14:59 install.log.syslog [root@rhel6vm ~]# ^ | up there
句号意味着什么? 还有什么可以出现在它的地方?
信息ls显示:
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 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.
GNU ls使用a . 字符来表示一个带有SELinux安全上下文的文件,但是没有其他的替代访问方法。
具有其他任何访问方法组合的文件都用+字符标记。