chmod命令学习笔记 注意事项

    xiaoxiao2024-03-26  6

    chmod是用来改变文件存取模式的命令

    Note:

    * 用户组:

      u 当前用户 当前用户属性

      g 用户组     用户组所有属性

      o 其他         其他用户属性

      a 所有用户

    * 权限:

       r 读

       w 写

       x 执行

       t 设置粘着位

       s

    * 注意事项:

       chmod u+s file  使file在执行过程中的用户具有所有者权限

       chmod g+s dir  任何用户在该目录下创建的文件都具有与该目录相同的组

       chmod +t file/dir 防止删除

    转载请注明原文地址: https://ju.6miu.com/read-1287348.html
    最新回复(0)