我有一种情况,我需要找到具有 World Write (WW) 权限 666 的文件,并且我需要使用 664 来修复这些文件。为此,我使用了此命令
find /dir/stuct/path -perm -0002 -type f -print > /tmp/deepu/permissions.txt
Run Code Online (Sandbox Code Playgroud)
当我执行命令时,我得到了具有 WW 权限的文件。现在我的要求是
find /dir/stuct/path -perm -0002 -type f chmod 664
Run Code Online (Sandbox Code Playgroud)
我的语法正确吗?