Chmod calculator: Unix file permissions
What does chmod 755 mean, and which number matches rwxr-xr-x? Tick the permissions for owner, group and others and you see the octal number, the symbolic notation and a ready-made command.
Pro This tool is part of ZakMachine Pro, a one-time purchase with no subscription.
How to read Unix file permissions
- There are three permissions: read (r) is 4, write (w) is 2 and execute (x) is 1. You add them up per group.
- Three groups each get a digit: owner (u), group (g) and others (o). 7 is 4 + 2 + 1 (rwx) and 5 is 4 + 1 (r-x).
- Besides the nine rwx bits there are setuid (run as the owner), setgid (run as the group) and the sticky bit (only the owner can delete). The number then has four digits, such as 4755.
Example: 755 and 644
755 is rwxr-xr-x, in long form u=rwx,g=rx,o=rx: the owner can do everything, others can read and execute. 644 is rw-r--r--: the owner can read and write, others can only read. The command is, for example, chmod 755 script.sh.
In ZakMachine: Chmod generator
Tick read, write and execute per group, or type an octal number such as 755 or 4755; the app also gives the symbolic notation. Optionally enter a file name for a ready-made command, quoted when it has spaces or special characters, and choose whether to include folder contents (-R).
Frequently asked questions
What does the -R option do?
With -R, chmod applies the permissions to everything inside a folder too. Switch it on and the command gets -R.
Is this tool part of ZakMachine Pro?
Chmod generator is part of ZakMachine Pro: a one-time purchase, no subscription. Pro works on all your devices and can be shared with Family Sharing. Besides that, 10 tools are free.
ZakMachine for iPhone, iPad and Mac
Download ZakMachine for free on the App Store and unlock Pro with a one-time purchase.