1. Permissions View Ls-l
2. Letter R (Readable): W (writable): X (Executable)
Show
-rw-r--r--
Interpretation: The first column "-" Ordinary files:
"D" catalog file
"B" Device files
"C" character file, such as keyboard
"s" Socket file
"P" Pipeline file
The second column to the tenth column (1) is the master permission rw-readable, writable
(2) Group permissions r--readable
(3) Rights of other persons r--readable
3. Set file permissions chmod no permissions (0)
Rule R (Readable) 4, W (writable) 2, X (executable) 1
Master Permissions rw-4+2+0=6
Group Permissions r--4+0+0=4
Other people r--4+0+0=4
Usage # chmod 740 file name
-RWX r-----
Master Permissions rwx 4+2+1=7 readable, writable, executable
Group Permissions r--4+0+0=4 readable
Others---0+0+0=0 have no authority.
命令 设定对象 权限 权限chmod u(主) +(增加) r(可读) g(组) - (减少) w(可写) o(其他人) =(不变) x(可执行) a(全部) 用法 #chmod u+w o+r fish 主增加可执行,其他人增加可读
#chmod-R 755/home Home directory change all to 755
-rw-r--r--root root
The first root belongs to the master. Owner
Second Root Group
Keep a small tail 20180523
Linux CentOS permissions view, modify