改 owner(文件所有者)和 other(其他用户)对文件或目录的“执行”权限
chmod g-rwx example.txt
chmod u-x,o-x 文件名
说明:
u-x:移除用户(owner)的执行权限
o-x:移除其他人(others)的执行权限
multi:chmod u-x,o-x *.sh
递归:
chmod -R g-w /path/to/your/directory
chmod -R u-x,o-x /path/to/directory
chmod g-rwx example.txt
chmod u-x,o-x 文件名
说明:
u-x:移除用户(owner)的执行权限
o-x:移除其他人(others)的执行权限
multi:chmod u-x,o-x *.sh
递归:
chmod -R g-w /path/to/your/directory
chmod -R u-x,o-x /path/to/directory