|
Numbers
are sometime used for setting file and folder permissions. Each
of the three numbers corresponds to each of the three sections
of letters. The first number determines the owner permissions,
the second number determines the group permissions, and the third
number determines any other permissions. Each number has one of
eight values ranging from 0 to 7. Each value corresponds to a certain
setting of the read, write, and execute permissions.
These
values are added together:
|
1
|
execute
only
|
|
2
|
write
only
|
|
3
|
write
and execute (1+2)
|
|
4
|
read
only
|
|
5
|
read
and execute (4+1)
|
|
6
|
read
and write (4+2)
|
|
7
|
read
and write and execute (4+2+1)
|
Or,
in a table format, would look like this:
|
Number
|
Read
(R)
|
Write
(W)
|
Execute
(X)
|
|
0
|
No
|
No
|
No
|
|
1
|
No
|
No
|
Yes
|
|
2
|
No
|
Yes
|
No
|
|
3
|
No
|
Yes
|
Yes
|
|
4
|
Yes
|
No
|
No
|
|
5
|
Yes
|
No
|
Yes
|
|
6
|
Yes
|
Yes
|
No
|
|
7
|
Yes
|
Yes
|
Yes
|
|