开发者社区 问答 正文

文件权限管理:

文件权限管理:

展开
收起
愚笨如你 2020-02-19 17:24:57 2085 分享 版权
1 条回答
写回答
取消 提交回答
  • 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 :变更目录中的所有的子目录及文件的所属用户和组

    2020-02-19 17:25:20
    赞同 展开评论
问答分类:
问答地址: