Chmod Calculator
Convert Unix permissions between octal and symbolic notation.
What the chmod calculator is doing
Unix file mode bits are three groups of three: owner, group, and everyone else. Each group is read, write, and execute, worth 4, 2, and 1. Add them for the octal digit. 7 is read, write, and execute. 5 is read and execute. 4 is read only. 755 is rwx for the owner and rx for everyone else, which is a normal mode for a program others may run but not edit. 644 is rw for the owner and read for everyone else, which is a normal mode for a file.
Type 755 into the box. The symbolic line should read rwxr-xr-x. Type 640 and you should see rw-r-----. A four-digit mode adds the special bits in front: setuid 4, setgid 2, sticky 1. 4755 is a setuid binary. 2775 is a setgid directory, used so files created in a shared directory keep the directory's group. 1777 is the sticky tmp directory, where anyone may create files and only the owner may delete their own.
The calculator converts the number you type. It does not change a file. On the host you still run chmod. It does not show ACLs. A file can be mode 644 and still be reachable, or not, through a default ACL. It also does not apply the umask. The umask decides the mode of a newly created file, and that is the other calculator.
Digits only. A mode of 999 is not octal and is rejected. Leading zeros are fine: 0755 is the same three permission digits as 755.
