14 的 M1 用 xattr 清不了扩展权限

2022-03-26 22:41:01 +08:00
 jsrgqinbin

以前从 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

有人遇到过吗?

1894 次点击
所在节点    MacBook Pro
6 条回复
jsrgqinbin
2022-03-26 22:54:45 +08:00
chmod -N 可以清除
wangxufire
2022-03-27 00:09:07 +08:00
@ + 都是啥意思
dingwen07
2022-03-27 00:18:23 +08:00
带 @的是另外一种,要用 ls -l@查看
删除是 xattr -d
deplivesb
2022-03-27 09:43:25 +08:00
我也想知道这个 @和+ 是啥意思,有文档啥的没
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
jsrgqinbin
2022-03-28 16:50:51 +08:00
@mons 感谢

这是一个专为移动设备优化的页面(即为了让你能够在 Google 搜索结果里秒开这个页面),如果你希望参与 V2EX 社区的讨论,你可以继续到 V2EX 上打开本讨论主题的完整版本。

https://www.v2ex.com/t/843108

V2EX 是创意工作者们的社区,是一个分享自己正在做的有趣事物、交流想法,可以遇见新朋友甚至新机会的地方。

V2EX is a community of developers, designers and creative people.

© 2021 V2EX