Change file permissions

来源:互联网 发布:封锁 张爱玲 知乎 编辑:程序博客网 时间:2024/06/05 06:23

chgrp:Change the file user group they belong to;

chown:Change the file owner;

chmod:Change the file attributes ,such as SUID features;


chgrp -R  testing test.log (Change the  user group to the testing,-R is for all files in directory change together)

chown bin test.log(Change the test.log owners for the bin)

chmod 777 test.log  



原创粉丝点击