linux修改文件的权限

linux修改文件的权限

  1. 首先要了解Linux的文件属性
    在这里插入图片描述
    2.chmod命令修改文件或目录权限。
    其中Xyz:为权限属性值,各权限所代表的的数据r:4 w:2 x:1
    例:-rwxrwx—权限属性值的计算:
    属主权限rwx:4+2+1=7
    属组权限rwx:4+2+1=7
    其他组用户权限—:0+0+0=0
    因此-rwxrwx—代表权限属性值:770

3.使用命令修改文件权限

[root@localhost Desktop]# touch text
[root@localhost Desktop]# chmod 565 text

Guess you like

Origin blog.csdn.net/qq_48164590/article/details/121051326