更改文件拥有者 -R 是递归的意思chown [ -R ] root.work test将test 文件 改为 拥有者 root , 用户组 work。chown [ -R ] work test将test 文件 改为 拥有者 root 更改用户组 -R 是递归的意思chgrp nagios test 将test 文件 用户组 改为 nagios。更改文件属性 chmod用数字修改 chmod 776 test还有一种使用 符号类型改变文件权限chmod u=rwx,g+r,o+x test u=rwx,g+r,o+x这一段文字之前不能有空格
(以上内容不代表本站观点。) --------------------------------- |