Convert between numeric and symbolic Unix/Linux file permissions. Interactive checkboxes make it easy to set exactly the permissions you need.
| Permission | Owner | Group | Others | ||||||
|---|---|---|---|---|---|---|---|---|---|
| Read | Write | Execute | Read | Write | Execute | Read | Write | Execute | |
| Standard | |||||||||
chmod 755 filename
chmod u=rwx,g=rx,o=rx filename
-rwxr-xr-x
The chmod command in Unix/Linux changes file and directory permissions. Permissions control who can read, write, and execute files. This calculator makes it easy to convert between numeric (octal) and symbolic notation.
Each digit in the numeric notation is the sum of permissions: 7 = rwx (4+2+1), 5 = r-x (4+0+1), 4 = r-- (4+0+0)
Use 755 for directories and executable files (scripts, binaries). Use 644 for regular files (documents, configs, source code). The key difference is the execute bit — directories need it for access, files need it to run as programs.
777 means anyone on the system can read, modify, and execute the file. On a web server, this could allow attackers to modify your scripts. Use the most restrictive permissions that still allow your application to function.
Numeric (755) sets all permissions at once. Symbolic (u+x, g-w) modifies specific permissions without changing others. Numeric is faster for setting exact permissions; symbolic is better for targeted changes.