File permissions in Linux are coded symbolically (as letters)
r - read
w - write
x - execute
And Numerically:
4 - read
2 - write
1 - execute
dir permissions | Octal | del rename create files | dir list | read files contents | write file contents | cd dir | cd subdir | subdir list | access subdir files |
---|---|---|---|---|---|---|---|---|---|
— | 0 | ||||||||
-W- | 2 | ||||||||
R– | 4 | only files names (*) | |||||||
RW- | 6 | only files names (*) | |||||||
–X | 1 | X | X | X | X | X | X | ||
-WX | 3 | X | X | X | X | X | X | X | |
R-X | 5 | X | X | X | X | X | X | X | |
RWX | 7 | X | X | X | X | X | X | X | X |