Chmod Calculator
Calculate chmod permissions for Unix/Linux file systems. Set read, write, and execute permissions for owner, group, and others.
Owner
Group
Others
Chmod Value
644
Command: chmod 644 filename
How to Use This Calculator
- Check or uncheck permissions for Owner (read, write, execute).
- Check or uncheck permissions for Group (read, write, execute).
- Check or uncheck permissions for Others (read, write, execute).
- The calculator displays the chmod value and the command to use.
Chmod Permission System
Chmod uses a 3-digit number system:
Add values for combined permissions:
7 = Read + Write + Execute (4+2+1)
6 = Read + Write (4+2)
5 = Read + Execute (4+1)
4 = Read only
3 = Write + Execute (2+1)
2 = Write only
1 = Execute only
0 = No permissions
Example: 755 means owner has 7 (all permissions), group has 5 (read+execute), others have 5 (read+execute). This is common for executable files.
Full Description
Chmod (change mode) is a Unix/Linux command that sets file and directory permissions. The permission system controls who can read, write, and execute files, providing security and access control. Chmod uses a 3-digit number where each digit represents permissions for one category: owner (file owner), group (users in the file's group), and others (everyone else).
Each permission type has a numeric value: Read = 4, Write = 2, Execute = 1. These values are added together to create combined permissions. For example, 7 = 4+2+1 (read+write+execute), 6 = 4+2 (read+write), 5 = 4+1 (read+execute). The three digits represent owner, group, and others in that order. Common values include 755 (executable files), 644 (regular files), and 600 (private files).
This calculator helps you determine chmod values by selecting permissions. Check or uncheck permissions for owner, group, and others, and it calculates the chmod number and shows the command. Use it to understand file permissions, set appropriate access levels, or learn the chmod system. Proper file permissions are essential for system security and access control.
Frequently Asked Questions
What is chmod?
chmod (change mode) is a Unix/Linux command that sets file permissions. Permissions control who can read, write, and execute files. The chmod value is a 3-digit number (0-7 for each digit) representing permissions for owner, group, and others.
How do chmod numbers work?
Each digit represents permissions for one category (owner, group, others). Read = 4, Write = 2, Execute = 1. Add values for combined permissions: 7 = read+write+execute (4+2+1), 6 = read+write (4+2), 5 = read+execute (4+1), 4 = read only, 0 = no permissions.
What are common chmod values?
755 = rwxr-xr-x (owner: all, group/others: read+execute) - common for executables. 644 = rw-r--r-- (owner: read+write, group/others: read only) - common for files. 777 = rwxrwxrwx (all permissions for everyone) - use with caution. 600 = rw------- (owner only) - private files.
How do I use chmod?
Use the command: chmod [value] [filename]. For example, chmod 755 script.sh gives owner full permissions and group/others read+execute. You can also use symbolic notation: chmod u+x adds execute for owner, chmod g-w removes write for group.