chmod:无效模式:`+a'

Phi*_*ord 11 10.04 permissions command-line chmod

系统:( lsb_release -a )

Distributor ID: Ubuntu
Description:    Ubuntu 10.04.4 LTS
Release:        10.04
Codename:       lucid
Run Code Online (Sandbox Code Playgroud)

这是我的命令:

sudo chmod +a "www-data allow delete,write,append,file_inherit,directory_inherit" app/cache app/logs
Run Code Online (Sandbox Code Playgroud)

文档:

错误:

chmod: invalid mode: `+a'
Try `chmod --help' for more information.
Run Code Online (Sandbox Code Playgroud)

为什么这不起作用?+a 不是标准的 chmod 吗?

更新:

看起来这是一个仅限 OSX 的 mod:

rev*_*dj1 17

“+a”不是标准参数,不是。按照链接文档中的下一步操作。

sudo setfacl -R -m u:www-data:rwx -m u:`whoami`:rwx app/cache app/logs
sudo setfacl -dR -m u:www-data:rwx -m u:`whoami`:rwx app/cache app/logs
Run Code Online (Sandbox Code Playgroud)

有关“+a”对使用它的 chmod 的作用的信息:

+a +a 模式从命令行上的下一个参数解析新的 ACL 条目,并将其插入到 ACL 中的规范位置。如果提供的条目引用了已列出的身份,则合并两个条目。