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

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

  •  
  •   jsrgqinbin · 2022 年 3 月 26 日 · 2702 次点击
    这是一个创建于 1395 天前的主题,其中的信息可能已经有所发展或是发生改变。

    以前从 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 年 3 月 26 日
    chmod -N 可以清除
    wangxufire
        2
    wangxufire  
       2022 年 3 月 27 日 via iPhone
    @ + 都是啥意思
    dingwen07
        3
    dingwen07  
       2022 年 3 月 27 日 via iPhone
    带 @的是另外一种,要用 ls -l@查看
    删除是 xattr -d
    deplivesb
        4
    deplivesb  
       2022 年 3 月 27 日
    我也想知道这个 @和+ 是啥意思,有文档啥的没
    mons
        5
    mons  
       2022 年 3 月 27 日
    @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 年 3 月 28 日
    @mons 感谢
    关于   ·   帮助文档   ·   自助推广系统   ·   博客   ·   API   ·   FAQ   ·   Solana   ·   2931 人在线   最高记录 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 35ms · UTC 14:53 · PVG 22:53 · LAX 06:53 · JFK 09:53
    ♥ Do have faith in what you're doing.