Free online Linux file permission calculator. Parse ls -la output (drwxr-xr-x), convert between numeric and symbolic modes, calculate umask, handle SUID/SGID/Sticky Bit. Essential tool for sysadmins and developers. | No sign-up ยท Data never leaves your browser
Zero dependencies ยท Works offline| Numeric | Symbolic | Permission | Common Use |
|---|---|---|---|
| 777 | rwxrwxrwx | All permissions for everyone | Temp dirs (not recommended) |
| 755 | rwxr-xr-x | Owner all, others read+exec | Directory/script default |
| 700 | rwx------ | Owner only | Private directory |
| 644 | rw-r--r-- | Owner rw, others read | File default |
| 600 | rw------- | Owner rw only | Private file (SSH keys) |
| 400 | r-------- | Owner read only | Read-only config |
| 4755 | rwsr-xr-x | SUID + 755 | passwd, privileged commands |
| 1777 | rwxrwxrwt | Sticky + 777 | /tmp directory |
The Linux File Permission Calculator supports 4 modes:
drwxr-xr-x represents a directory where the owner has read, write, and execute permissions (rwx), the group has read and execute (r-x), and others have read and execute (r-x). The numeric value is 755, the standard permission for directories.
umask is a mask that controls default permissions for newly created files and directories in Linux. Default permission = base permission - umask. Files have a base of 666, directories 777. For example, with umask=022, new files get 666-022=644 (rw-r--r--) and new directories get 777-022=755 (rwxr-xr-x).
SUID (4000) makes a program run with the file owner's permissions, like the passwd command. SGID (2000) makes a program run with the file's group, and on directories new files inherit the directory's group. Sticky Bit (1000) only allows the file owner and root to delete files in a directory, commonly used on /tmp.