Kitloft

All tools / chmod reference

chmod 1777 (rwxrwxrwt)

Everyone can create files, but only a file's owner can delete or rename it. This is the mode of /tmp.

chmod 1777 in symbolic form
rwxrwxrwt

Who can do what

ReadWriteExecute
Owner✓✓✓
Group✓✓✓
Others✓✓✓

Commands

Set the mode
chmod 1777 my-dir
# same thing in symbolic form:
chmod u=rwx,g=rwx,o=rwxt my-dir

In ls -l output, a file with this mode shows as -rwxrwxrwt and a directory as drwxrwxrwt.

Try a different mode

ReadWriteExecuteSpecial
Owner
Group
Others
Octal Symbolic
Command