Chmod codes (Linux)

From ben.goodacre.name/tech

Jump to: navigation, search

First charater: User permissions
Second chracter: Group permissions
Last character: Other permissions

ls listing chmod code
r--------400
rw-------600
rw-r-----640
rwx------700
rwxrwx---770
rwxr-xr-x755

Examples

user@host:~$ chmod 600 test
user@host:~$ ls -l test
-rw------- 1 user group 6 2009-11-25 15:48 test

user@host:~$ chmod 640 test
user@host:~$ ls -l test
-rw-r----- 1 user group 6 2009-11-25 15:48 test

user@host:~$ chmod 750 test
user@host:~$ ls -l test
-rwxr-x--- 1 user group 6 2009-11-25 15:48 test

user@host:~$ chmod 700 test
user@host:~$ ls -l test
-rwx------ 1 user group 6 2009-11-25 15:48 test
Personal tools
Namespaces
Variants
Actions
Navigation
Toolbox