加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 综合聚焦 > 服务器 > 安全 > 正文

bash – 文件权限中的句点是什么意思?

发布时间:2020-12-15 21:17:38 所属栏目:安全 来源:网络整理
导读:我在’ls -l’的输出中找到了一个权限字符,我不明白: [root@gnurr ~]# ls -l /etc/cron.daily/total 32-rwxr-xr-x 1 root root 265 Sep 10 16:04 0logwatch-rwxr-xr-x. 1 root root 118 Aug 17 12:21 cups 文件’cups’的标准权限字符后有一段时间,但文件’
我在’ls -l’的输出中找到了一个权限字符,我不明白:

[root@gnurr ~]# ls -l  /etc/cron.daily/
total 32
-rwxr-xr-x  1 root root  265 Sep 10 16:04 0logwatch
-rwxr-xr-x. 1 root root  118 Aug 17 12:21 cups

文件’cups’的标准权限字符后有一段时间,但文件’0logwatch’不存在

我发现了很多这些点 – 它们也出现在目录或软链接中,但它们似乎永远不会显示我自己创建的文件.

我发现一些帖子在这个位置提到’@’或”表示’扩展属性’或’扩展安全信息’,但没有关于’.’.

有人知道这意味着什么吗?

解决方法

从info / man页面:

GNU ‘ls’ uses a ‘.’ character to indicate a file with an SELinux
security context,but no other alternate access method.

整个部分还提到了”,这是相关的:

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.

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读