ama*_*hop 3 linux ubuntu file-permissions file
我有一个目录,其rwxrwsr-x作为其权限,我需要将组设置为rwx.我怎样才能在命令行上执行此操作?我有root权限.
使用sudo(因此您有完整的权限)来运行chmod(即"更改模式"或"更改权限")命令.
sudo chmod g-s thefilename
Run Code Online (Sandbox Code Playgroud)
参数g-s说" s从group权限块中删除标志".s代表sticky,但这意味着这些日子有点不同,取决于它是在文件还是目录上.
要了解更多信息,请参阅chmod手册页.