我们有脚本查看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
句号意味着什么?还有什么可以出现在它的位置?
解决方法
info 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.