码迷,mamicode.com
首页 > 其他好文 > 详细

所有者和所属组

时间:2018-12-03 11:18:58      阅读:154      评论:0      收藏:0      [点我收藏+]

标签:use   txt   color   chm   img   filename   分享图片   roc   http   

更改所有者chown(change owner)
更改3.txt的所有者:chown admin 3.txt
技术分享图片

更改所属组chgrp(change group)
更改3.txt的所属组:chgrp admin 3.txt
技术分享图片

更改所有者和所属组:chown
更改3.txt的所有者及所属组:chown root:admin 3.txt
前面为所有者,后面为所属组
技术分享图片

    只更改所属组
    chown :root 3.txt

批量更改所有者及所属组:
chown -R +路径
参考chmod命令

总结:
chown username:group filename
chown -R username:group filename

所有者和所属组

标签:use   txt   color   chm   img   filename   分享图片   roc   http   

原文地址:http://blog.51cto.com/14079728/2325085

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!