Numverto logo NUMVERTO
Published: 2 min read By
octal unix linux permissions

Unix File Permissions (chmod) Explained with Octal

Understand chmod 755, 644, and octal permission digits. Read, write, execute bits for owner, group, and others.

Advertisement — Responsive Ad

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:

BitValueMeaning
r (read)4View file / list directory
w (write)2Modify file / create in directory
x (execute)1Run script / enter directory

Sum bits for the digit: rwx = 4+2+1 = 7, rw- = 6, r-x = 5, r— = 4.

Common Modes

OctalSymbolicTypical Use
755rwxr-xr-xExecutable scripts, directories
644rw-r—r—Regular files
600rw-------Private files (SSH keys)
777rwxrwxrwxOpen (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.

Advertisement — Responsive Ad

Share this article

Learn Faster with Numverto

Explore free number system converters, binary tools, EMI calculators, GST calculators, and educational guides.

About Numverto

Numverto logo

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.

About | Contact | Editorial Policy

Article Metadata

Tags: octal, unix, linux, permissions

Last Updated: June 2026

Related Calculators

Advertisement — Responsive Ad

Related Articles

Popular Tools

View all 13 free tools → · Read tutorials · Number system guide