以前从 TimeMachine 里 Copy 东西出来,权限都会如下,带 @
drwxr-xr-x@
以前直接
sudo xattr -rc xx 就可以清除扩展的权限
14 的 M1 到了,用原来的方法,xattr 后权限多了个+
drwxr-xr-x+
用 ls -laeO@查看一直有扩展权限存在,如下
drwxr-xr-x+ 11 Ben admin - 352 2 5 20:53 sites-available 0: group:everyone deny add_file,delete,add_subdirectory,delete_child,writeattr,writeextattr,chown
有人遇到过吗?
1
jsrgqinbin OP chmod -N 可以清除
|
2
wangxufire 2022-03-27 00:09:07 +08:00 via iPhone
@ + 都是啥意思
|
3
dingwen07 2022-03-27 00:18:23 +08:00 via iPhone
带 @的是另外一种,要用 ls -l@查看
删除是 xattr -d |
4
deplivesb 2022-03-27 09:43:25 +08:00
我也想知道这个 @和+ 是啥意思,有文档啥的没
|
5
mons 2022-03-27 12:14:23 +08:00
@dingwen07
@deplivesb In some permission systems additional symbols in the ls -l display represent additional permission features: + (plus) suffix indicates an access control list that can control additional permissions. . (dot) suffix indicates an SELinux context is present. Details may be listed with the command ls -Z. @ suffix indicates extended file attributes are present. https://en.wikipedia.org/wiki/File-system_permissions#Symbolic_notation |
6
jsrgqinbin OP @mons 感谢
|