Each chmod SUM NUMBER means:
1 > --x
2 > -w-
3 > -wx (2 + 1)
4 > r--
5 > r-x (4 + 1)
6 > rw- (4 + 2)
7 > rwx (4 + 2 + 1)
You sum each option to get the final number,
max at 7 with 4 + 2 + 1
r - (4) read
w - (2) write
x - (1) execute
You also have each sum for user, group, all
So chmod 735 test would receive
- User 7 :
rwx - Group 3 :
-wx - All 5 :
r-x
$ ls -l test
-rwx-wxr-x 1 guneves guneves 0 Jul 25 02:23 test
reserved..