chmod、chown

chmod 更改权限

u+r

g+r

o+r

1 2 3 4 5 6
ls -al test -rw-rw-r--. 1 linuxprobe root 15 Feb 11 11:50 test chmod 760 test ls -l test -rwxrw----. 1 linuxprobe root 15 Feb 11 11:50 test

chown 更改所有者、属组

1 2 3 4 5 6
ls -l test -rwxrw----. 1 linuxprobe root 15 Feb 11 11:50 test chown root:bin test ls -l test -rwxrw----. 1 root bin 15 Feb 11 11:50 test

浙ICP备11005866号-12