V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
jsrgqinbin
V2EX  ›  MacBook Pro

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

  •  
  •   jsrgqinbin · 2022-03-26 22:41:01 +08:00 · 1880 次点击
    这是一个创建于 760 天前的主题,其中的信息可能已经有所发展或是发生改变。

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

    有人遇到过吗?

    6 条回复    2022-03-28 16:50:51 +08:00
    jsrgqinbin
        1
    jsrgqinbin  
    OP
       2022-03-26 22:54:45 +08:00
    chmod -N 可以清除
    wangxufire
        2
    wangxufire  
       2022-03-27 00:09:07 +08:00 via iPhone
    @ + 都是啥意思
    dingwen07
        3
    dingwen07  
       2022-03-27 00:18:23 +08:00 via iPhone
    带 @的是另外一种,要用 ls -l@查看
    删除是 xattr -d
    deplivesb
        4
    deplivesb  
       2022-03-27 09:43:25 +08:00
    我也想知道这个 @和+ 是啥意思,有文档啥的没
    mons
        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
    jsrgqinbin
        6
    jsrgqinbin  
    OP
       2022-03-28 16:50:51 +08:00
    @mons 感谢
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   5645 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 29ms · UTC 01:41 · PVG 09:41 · LAX 18:41 · JFK 21:41
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.