清除权限时 xattr 产生错误

xattr produce error when clear rights

我有继承权限的目录:

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'

我做错了什么?

我使用 chmod

解决了这个问题