CHMOD
For Dummies:
How to do it technically?Let's say I go to your site through FileZilla (it's an FTP client), I select any file or folder to the site and I click the right mouse button, Pops out a choice, where and there is a CHMOD configuration option. Sufficiently intuitive (see below on the right). How to set permissions - CHMOD Only for Unix server.
number code
The most common figures are 777 or 666.In general, they can take values from 0 to 7.
The calculation is based on the binary system of calculation.
If you write down the numbers, you get:
7=1 1 1
6=1 1 0
5=1 0 1
4=1 0 0
3=0 1 1
2=0 1 0
1=0 0 1
0=0 0 0
As you know, the unit corresponds to the statement (yes),6=1 1 0
5=1 0 1
4=1 0 0
3=0 1 1
2=0 1 0
1=0 0 1
0=0 0 0
Zero - ignoring (no).
Now let's define what they claim and ignore these combinations of numbers.
The following order is applied: R W X
R | - read |
W | - write |
X | - execute |
R | W | X | |
7 | x | x | x |
6 | x | x | |
5 | x | x | |
4 | x | ||
3 | x | x | |
2 | x | ||
1 | x | ||
0 |
The first digit | document master |
Second | persons belonging to a group |
Third | any user |
- The owner will do with him whatever he wants;
- Group members read and execute;
- The guest is only read.