How to use
- Tick the permissions for owner, group and others — or type an octal mode like
644, or paste-rw-r--r--fromls -l. - Add special bits (setuid, setgid, sticky) if needed.
- Type a symbolic change such as
u+x,go-wand press Enter to apply it to the current mode. - Copy the generated
chmodcommand.
FAQ
What do 755 and 644 mean?
Each digit is a sum of read (4), write (2) and execute (1) for owner, group and others. 755 = rwx for the owner, r-x for everyone else (typical for directories and scripts). 644 = rw- for the owner, read-only for others (typical for files).
What are setuid, setgid and sticky?
A fourth leading digit. setuid (4) runs a program as its owner; setgid (2) does the same for the group, and on directories makes new files inherit the group; sticky (1) on a directory such as /tmp stops users deleting each other’s files.
Should I ever use 777?
Almost never. It lets every user on the system modify the file. Fix ownership with chown instead, and grant group write (775/664) when several users need access.