2016-07-06 56 views
0

我正在设置一个演示服务器,并且有关于安全文件权限的问题。将安全文件权限命令转换为Linux控制台终端命令

ansible任务如下:

- file: path=/etc/testpathA group=groupA mode=660 recurse=yes state=directory 
- file: path=/etc/testpathB group=groupB mode=770 recurse=yes state=directory 

我试图在Linux服务器的控制台终端直接使用此命令,但我不能在它谷歌找到。我需要一些帮助。

+0

如果要执行由手这个命令,使用'mkdir','chown'和'chmod'命令 –

回答

0

实际上,有多个命令在这里例如在

- file: path=/etc/testpathA group=groupA mode=660 recurse=yes state=directory 

尝试这些在外壳

chgrp -R groupA: /etc/testpathA 
chmod -R 600 /etc/testpathA 

希望这有助于