1777
Octal
rwxrwxrwt
Symbolic
Use with care
Security
What does chmod 1777 mean?
chmod 1777 gives world-writable with sticky bit. Everyone can create files, but the sticky bit (the leading 1) means users can only delete or rename their own files. This is the permission of /tmp and /var/tmp.
| Who | Digit | Symbolic | Permissions |
|---|---|---|---|
| Owner (user) | 7 | rwx | read, write, execute |
| Group | 7 | rwx | read, write, execute |
| Others | 7 | rwx | read, write, execute |
Each digit is the sum of read (4), write (2) and execute (1). In ls -l the file shows as -rwxrwxrwt and a directory as drwxrwxrwt.
The special bit
The leading 1 sets the sticky bit (1). In ls -l it shows as t in the others’ execute position.
How to use chmod 1777
# one file or directory
chmod 1777 filename
# the same permissions in symbolic form
chmod u=rwx,g=rwx,o=rwx filename
# a directory and everything inside it
chmod -R 1777 directory/
Need a different combination? Tick the boxes in the chmod calculator to get the octal and symbolic values instantly.
Chmod calculatorToggle read, write and execute for owner, group and others to build any permission.
Open the calculator Frequently asked questions
What does chmod 1777 do?
It sets the permissions to rwxrwxrwt: the owner gets read, write, execute, the group read, write, execute and others read, write, execute.
What is 1777 in symbolic notation?
rwxrwxrwt, or chmod u=rwx,g=rwx,o=rwx as a symbolic chmod command.Is chmod 1777 safe?
It is fine in controlled setups, but it grants write access beyond the owner — make sure the group (or everyone, for the sticky bit) is intended.