Linux 文件权限管理命令chmod、chown

chmod 变更文件或目录的权限。
chmod 755 a.txt 
chmod u=rwx,g=rx,o=rx a.txt
chmod 000 a.txt  / chmod 777 a.txt

chown 变更文件或目录改文件所属用户和组
chown u1:public a.txt	:变更当前的目录或文件的所属用户和组
chown -R u1:public dir	:变更目录中的所有的子目录及文件的所属用户和组
发布了874 篇原创文章 · 获赞 381 · 访问量 79万+

猜你喜欢

转载自blog.csdn.net/a772304419/article/details/104080618