1

I have a shared folder that is used in our LAN development environment that needs to always have rwx permissions for everyone. When Jenkins builds our application however it copies over files to be available and doesn't give guests the ability to write to the files.

So under this directory for any new sub directory or file in a sub directory it basically has to do a chmod 777 to it.

I tried sudo setfacl -Rm g:users:rwX,d:g:users:rwX index/

which gave the parent directory the permissions of drwxrwxrwx+, and all of the sub directories and files have the + but they kept their original permissions.

How do I always make everything in this folder 777?

4

1 回答 1

4

大多数 unix 命令都带有递归选项。在这种情况下:

-R, --recursive

似乎您正在尝试使用它,但您有-Rm. 那不是正确的选择。

我认为你需要的是:

sudo setfacl -R -m g:users:rwX,d:g:users:rwX index/

我通常使用chmod而不是setfacl.

chmod -R 777 *
于 2013-09-05T13:17:26.843 回答