There are three types of access rights available in Linux:
Access permissions can be easily controlled by using a 3-digit value together with the command chmod.
This 3-digit value is made up from three separate groups, each with their own value that specifies the type of access that is available. The groups are:
The values range from 0 to 7.
The table below shows the full list of values next to their relevant access permissions:
| No. | Read (r) | Write (w) | Execute (x) |
|---|---|---|---|
| 0 | Denied | Denied | Denied |
| 1 | Denied | Denied | Allowed |
| 2 | Denied | Allowed | Denied |
| 3 | Denied | Allowed | Allowed |
| 4 | Allowed | Denied | Denied |
| 5 | Allowed | Denied | Allowed |
| 6 | Allowed | Allowed | Denied |
| 7 | Allowed | Allowed | Allowed |
So, if a value of 7 is specified, the relevant group can read, write and execute. If 4 is specified, the relevant group can only read.
The the first number is assigned to User, the second to group and the third to others.
Go back to the How-to Guides main page.
Offering small businesses and individual users the opportunity to have their own website on the internet, our 'starter websites' are available for only £150.
To find out more and to see an example of the type of site offered, view our example starter website page.