Owner: read, write, execute · Group: read, write, execute · Others: read, write, execute
Change any permission with the chmod calculator.
| Who | Digit | Letters | Can |
|---|---|---|---|
| Owner (user) | 7 | rwx | read, write, execute |
| Group | 7 | rwx | read, write, execute |
| Others | 7 | rwt | read, write, execute |
Each digit is the sum of read (4), write (2) and execute (1). The leading 1 is a special bit: the sticky bit — in a shared folder only a file’s owner can delete or rename it.
Shared temporary folders like /tmp: everyone can write, only owners can delete their files.
chmod 1777 sets the permissions to rwxrwxrwt: the owner can read, write, execute, the group can read, write, execute and others can read, write, execute. The leading digit sets special bits (sticky).
Shared temporary folders like /tmp: everyone can write, only owners can delete their files.
1777 is rwxrwxrwt (shown by ls -l as -rwxrwxrwt for a file or drwxrwxrwt for a folder). The symbolic chmod command is chmod u=rwx,g=rwx,o=rwx file.