V2EX = way to explore
V2EX 是一个关于分享和探索的地方
Sign Up Now
For Existing Member  Sign In
jsrgqinbin

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

  •  
  •   jsrgqinbin · Mar 26, 2022 · 2884 views
    This topic created in 1493 days ago, the information mentioned may be changed or developed.

    以前从 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 replies    2022-03-28 16:50:51 +08:00
    jsrgqinbin
        1
    jsrgqinbin  
    OP
       Mar 26, 2022
    chmod -N 可以清除
    wangxufire
        2
    wangxufire  
       Mar 27, 2022 via iPhone
    @ + 都是啥意思
    dingwen07
        3
    dingwen07  
       Mar 27, 2022 via iPhone
    带 @的是另外一种,要用 ls -l@查看
    删除是 xattr -d
    deplivesb
        4
    deplivesb  
       Mar 27, 2022
    我也想知道这个 @和+ 是啥意思,有文档啥的没
    mons
        5
    mons  
       Mar 27, 2022
    @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
       Mar 28, 2022
    @mons 感谢
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   1008 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 35ms · UTC 19:08 · PVG 03:08 · LAX 12:08 · JFK 15:08
    ♥ Do have faith in what you're doing.