更改文件的权限和所有者

所有用户均可读、可写但不能执行的权:
chmod 666 test.txt
文件的所属用户均变更为user:
chown user test.txt
文件的属组变更为user:
chgrp user test.txt

(文件的属组和所属用户均变更为user的命令: chown user:user test.txt) 

猜你喜欢

转载自ypf3027.iteye.com/blog/824521