Unix File Permissions (chmod) Explained with Octal
Understand chmod 755, 644, and octal permission digits. Read, write, execute bits for owner, group, and others.
What is chmod?
chmod changes file permissions on Unix/Linux/macOS. Modes can be symbolic (u+x) or octal (755). Octal is compact: three digits encode owner, group, and others.
Permission Bits
Each category has three bits:
| Bit | Value | Meaning |
|---|---|---|
| r (read) | 4 | View file / list directory |
| w (write) | 2 | Modify file / create in directory |
| x (execute) | 1 | Run script / enter directory |
Sum bits for the digit: rwx = 4+2+1 = 7, rw- = 6, r-x = 5, r— = 4.
Common Modes
| Octal | Symbolic | Typical Use |
|---|---|---|
| 755 | rwxr-xr-x | Executable scripts, directories |
| 644 | rw-r—r— | Regular files |
| 600 | rw------- | Private files (SSH keys) |
| 777 | rwxrwxrwx | Open (avoid in production) |
Example: chmod 755 script.sh
Owner: 7 = rwx (full). Group: 5 = r-x (read+execute). Others: 5 = r-x.
Octal ↔ Binary
Each digit = 3 bits. 7 = 111, 5 = 101. See Octal Conversion Guide.
Tools
Convert permission digits with Number System Converter — enter octal base 8 to see binary breakdown.
Frequently Asked Questions
What is umask?
Default permission mask subtracted from new files — often 022 giving 644 for files.
Can directories be executable?
Yes — x on directories means “search/enter” permission.
Why not use decimal for chmod?
Historical Unix convention — octal maps cleanly to 3-bit groups.
What is sticky bit?
Special fourth digit (e.g. 1777) — advanced topic beyond basic chmod.
Where learn more number systems?
Number System Guide on Numverto.
Share this article
Learn Faster with Numverto
Explore free number system converters, binary tools, EMI calculators, GST calculators, and educational guides.
About Numverto
Numverto Editorial Team
Numverto publishes educational content about number systems, computer science concepts, binary arithmetic, financial calculations, EMI formulas, GST calculations, and practical learning resources for students and professionals.
Article Metadata
Tags: octal, unix, linux, permissions
Last Updated: June 2026
Related Calculators
Related Articles
18 June 2026
Octal to Decimal Conversion — Step by Step with Examples
Learn how to convert octal (base 8) numbers to decimal (base 10) using the positional weight method. Includes worked examples, practice problems, and a free converter tool.
Read article →5 March 2026
Octal Number System & Conversion Guide
Learn octal (base 8) conversion to decimal and binary. Includes chmod examples, worked problems, and free online tools.
Read article →17 June 2026
What is 1's Complement and 2's Complement in Binary?
Learn 1's complement and 2's complement with simple explanations, step-by-step examples, and practice problems for BCA/BTech exams.
Read article →