|
5.04a Permissions
Permissions
applied to a file:
read(r)
permits to look at the file cont
write(w)
permits to change the contents of the file or delete the file
execute(x)
permits to run the file as a program #(if it is a program)
Permissions applied
to a directory:
read(r)
permits to list the contents of a directory
write(w)
permits to add or remove files from a directory
execute(x)
permits to access file and subdirectories, which gives the ability
to change into this directory with a cd command. Within a directory
structure, normally r and z are pares
Octal Mode (Absolute
Mode)
| User/Owner |
Group |
Other |
| read
write execute |
read
write execute |
read
write execute |
| 400
200 100 |
40
20 10 |
4 2 1 |
Example:
740
is equivalent to a:
u=rwx, g=r, o=
Numeric Permissions
Table:
| Permission |
User/Owner |
Group |
Other |
| Read |
4 |
4 |
0 |
| Write |
2 |
0 |
0 |
| Execute |
1 |
0 |
0 |
| TOTAL |
7 |
4 |
0 |
Examples:
600 is equivalent
to a: u=rw, g=, o=0
740 is equivalent
to a: u=rwx, g=r, o=
|