Calculate Unix file permissions, octal values, and generate chmod commands.
| Bit | Owner | Group | Others |
|---|---|---|---|
| Read(4) | |||
| Write(2) | |||
| Execute(1) |
Type 9-char (e.g. rwxr-xr-x) or with leading type char
chmod 755 file.shchmod u=rwx,g=rx,o=rx file.shQuick Reference
644Regular file (rw-r--r--)755Script / directory (rwxr-xr-x)777World-writable (rwxrwxrwx)600Private file (rw-------)400Read-only (r--------)700Private executable (rwx------)664Group writable (rw-rw-r--)750Private to group (rwxr-x---)s = setuid/setgid with exec, S = setuid/setgid without exec, t = sticky bit with exec, T = sticky without exec