Warning: file_get_contents(/data/phpspider/zhask/data//catemap/5/bash/17.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Bash 清除权限时,xattr产生错误_Bash_Macos_Xattr - Fatal编程技术网

Bash 清除权限时,xattr产生错误

Bash 清除权限时,xattr产生错误,bash,macos,xattr,Bash,Macos,Xattr,我有一个具有继承权限的目录: drwxrwxrwx+ 5 root admin 170 Feb 16 18:27 autotests 0: group:everyone inherited deny add_file,add_subdirectory,directory_inherit 所以我想清除扩展权限并在父目录上执行此操作: xattr -rc . 但我有一个错误: KeyError: 'com.apple.FinderInfo' 我做错了什么?我用解决了

我有一个具有继承权限的目录:

drwxrwxrwx+  5 root           admin    170 Feb 16 18:27 autotests
0: group:everyone inherited deny add_file,add_subdirectory,directory_inherit
所以我想清除扩展权限并在父目录上执行此操作:

xattr -rc .
但我有一个错误:

KeyError: 'com.apple.FinderInfo'

我做错了什么?

我用

解决了这个问题,我只是把这个标记为没用,因为你没有提出一个完整的解决方案,你只是指向某个方向,没有步骤来重现。。。