chmod 1777 — rwxrwxrwt
What chmod 1777 allows, when to use it, and the calculator pre-filled with it — toggle any box to compare.
rwxrwxrwtrwxrwxrwxchmod 1777 filenamechmod -R 1777 /path/to/dirWhat this means
Owner can read, write, execute. Group can read, write, execute. Others can read, write, execute.
What chmod 1777 allows
| Who | Read | Write | Execute |
|---|---|---|---|
| Owner | ✓ | ✓ | ✓ |
| Group | ✓ | ✓ | ✓ |
| Others | ✓ | ✓ | ✓ |
- • sticky bit (1): in a shared directory, users can only delete their own files.
rwxrwxrwt — everyone can create files, but the sticky bit means people can only delete their own. This is /tmp's permission.
Every user on the system can modify this. Prefer giving write access through the owner or a group.
Commands
chmod 1777 fileset it on one file or directorychmod u=rwx,g=rwx,o=rwxt filethe same thing in symbolic formchmod -R 1777 dir/recursively — careful: it applies to files and directories alikels -l filecheck the result: -rwxrwxrwt (a directory shows drwxrwxrwt)On a directory, read lets you list it, write lets you create and delete entries, and execute lets you enter it and open what's inside. That's why directories usually get 755 or 750 while files get 644 or 640.
Frequently asked
What does chmod 1777 mean?
Owner: read, write, execute. Group: read, write, execute. Others: read, write, execute. sticky bit (1): in a shared directory, users can only delete their own files. In ls -l it shows as rwxrwxrwt.
What is the symbolic form of chmod 1777?
chmod u=rwx,g=rwx,o=rwxt file — it sets exactly the same permissions as chmod 1777.