权限末尾的加号告诉我什么?
ls -l
total 4
drwxrwxrwx+ 2 benson avahi-autoipd 4096 Jan 27 17:37 docs
以下是上下文:
cat /etc/issue
\CentOS release 5.3 (Final)
Kernel \r on an \m
答案1
答案2
通过手册页‘ls’
“如果文件或目录具有扩展安全信息,则 -l 选项打印的权限字段后面会跟着一个‘+’字符。”
这通常意味着该文件受到传统 Unix 权限之外的访问限制 - 可能是访问控制列表 (ACL)。
答案3
从acl
Ubuntu 中的软件包中:
$ man acl | grep -1 '+'
• For files that have a default ACL or an access ACL that contains more than the three required ACL entries, the ls(1) utility in the long form produced by ls -l
displays a plus sign (+) after the permission string.
$