Chmod Calculator
Permissions
| Who | Read | Write | Execute | Digit |
|---|---|---|---|---|
| Owner | 7 | |||
| Group | 5 | |||
| Others | 5 |
Result
chmod 755 file.txtchmod u=rwx,g=rx,o=rx file.txt- Owner:
- read, change, run it as a program
- Group:
- read, run it as a program
- Others:
- read, run it as a program
Apply a chmod change
Type what you'd pass to chmod to see what it does to 755 - the same rules as GNU chmod.
Umask
The umask takes permissions away from new files and folders. Type one to see what new files get.
- New files
- 644 -rw-r--r--
- New folders
- 755 drwxr-xr-x
- As letters
- umask -S → u=rwx,g=rx,o=rx
Work out Linux file permissions: tick boxes or type 755 or rwxr-xr-x, get the chmod command, apply u+x style changes and see what a umask gives.
Linux and macOS give every file and folder three sets of permissions - for its owner, its group and everyone else - written as numbers like 755 or letters like rwxr-xr-x. Tick the boxes or type either form and get both, plus the chmod command ready to copy and a plain-language explanation of who can do what. You can also try a chmod change like u+x,go-w (worked out exactly as GNU chmod does) and see what files get under a umask.