Linux 權限

權限 -rwxrwxrwx.

-rwx(user)rwx(group)rwx(others).

三種身分依序為(user/group/others),用(u/g/o)來表示。

每種身分又分(read/write/execute)三種權限,用(r/w/x)來表示,
用分數來表示權限,r=4 w=2 x=1
例如當權限為:[-rwxr-x---] 
user = rwx = 4+2+1 = 7
group = r-x = 4+1 = 5
others= --- = 0+0+0 = 0
分數表示為:750

留言