Linux 文件权限概念

Linux 文件权限概念

[root@google ~]# ls -al
total 87852
dr-xr-x--- 22 root   root       4096 Apr 16 22:20 .
dr-xr-xr-x 20 root   root       4096 Feb 22 17:26 ..
drwxr-xr-x  2 root   root       4096 Feb 22 17:28 17
drwxr-xr-x  2 root   root       4096 Feb 22 17:28 2
drwxr-xr-x  2 root   root       4096 Feb 22 17:28 22
drwxr-xr-x  3 root   root       4096 Feb 20 20:52 a
-rw-r--r--  1 root   root         36 Feb 19 14:51 abc.txt
-rw-r--r--  1 root   root         24 Feb 20 16:53 ABC.txt
-rw-r--r--  1 root   root 2753154483 Feb 25 15:09 all.tar.gz
-rw-r--r--  1 root   root         71 Oct 23 15:12 a.log
-rw-------  1 root   root      15815 Apr 19 17:51 .bash_history
-rw-r--r--  1 root   root         18 Dec 29  2013 .bash_logout
-rw-r--r--  1 root   root        176 Dec 29  2013 .bash_profile
-rw-r--r--  1 root   root        176 Dec 29  2013 .bashrc
-rwxr-xr-x  1 root   root      11117 Sep 25  2018 bbr.sh


2.png


1.png


改变文件属性和权限

3.png


改变所属群组:chgrp

4.png


改变文件所属者:chown

5.png


改变文件权限:chmod

6.png


chmod的另一种表示方式

7.png


给所有人员增加写权限

8.png


给所有人去除写权限

9.png

 

 

 

展开阅读全文