Chmod Calculator
Unix file permissions calculator. Convert between octal and symbolic notation, set permissions visually, and generate chmod commands.
File Permissions
Umask Preview
See what permissions new files and directories will have with a given umask value.
How Unix Permissions Work
Permission Types
Every file and directory has three sets of permissions for three classes of users:
- Owner (u): The user who owns the file
- Group (g): Users in the file's group
- Others (o): All other users
Each class can have three permission types:
r Read (4) — view contentsw Write (2) — modify contentsx Execute (1) — run as programOctal Notation
Permissions are represented as a 3 or 4-digit octal number. Each digit is the sum of its permission values (read=4, write=2, execute=1):
7= rwx (4+2+1)6= rw- (4+2)5= r-x (4+1)4= r-- (4)0= --- (no permissions)
Special Permissions
- Setuid (4xxx): Run file as the owner. Shows as
sin owner execute position - Setgid (2xxx): Run file as group, or inherit group on new files in directory. Shows as
sin group execute position - Sticky bit (1xxx): Only owner can delete files in directory. Shows as
tin others execute position
Umask
The umask is a mask that removes permissions from newly created files and directories. It is subtracted from the base permissions (666 for files, 777 for directories). A umask of 022 means new files get 644 and new directories get 755.
Common Permission Sets
755(rwxr-xr-x) — Executable files, directories644(rw-r--r--) — Regular files, config files700(rwx------) — Private directories600(rw-------) — Private files (e.g., SSH keys)777(rwxrwxrwx) — Full access (generally avoid)444(r--r--r--) — Read-only for everyone1777(rwxrwxrwt) — Shared directories (/tmp)
Related Utils
Feedback
Help us improve this page by providing feedback, and include your name/email if you want us to reach back. Thank you in advance.
Sending...
Feedback sent. Thank you!
Error occurred!
-
-
-
-
-
-
-
- ABI Encoder / Decoder
- Block Estimator
- Calldata Cost
- CREATE2 Address
- ENS Availability
- ENS Cost Estimator
- ENS Lookup
- ENS Namehash
- ENS Record Viewer
- ENS Subname Explorer
- ERC-20 Unit Converter
- Gas Estimator
- HD Wallet Derivation
- Merkle Tree Visualizer
- 4-Byte Selector Lookup
- Solidity Storage Layout
- Transaction Decoder
- Vanity Address Estimator
- Wallet Address Validator
- Wei/Gwei/Ether Converter
-
-
-
-
-
- API Response
- ASCII Table
- Code Bug Detector
- Code Explanation
- CSS Beautifier
- Env Parser
- GraphQL Query
- Syntax Highlight
- HTML Beautifier
- JS Beautifier
- JSON Formatter
- JSONPath
- JWT Decoder
- JS keyCodes
- API Lorem Ipsum
- RegExp
- Regex Library
- Semver Compare
- SQL Beautifier
- TOML Formatter
- Code Unminifier
- XML Beautifier
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Amortization
- Break-Even
- Compound Interest
- Crypto Profit/Loss
- Debt Payoff
- Discount
- Effective Interest
- Emergency Fund
- Inflation Calculator
- Simple Interest
- Invoice Calculator
- IRR Calculator
- Mortgage
- NPV Calculator
- Portfolio
- Profit Margin
- Rent vs Buy
- Retirement Calc
- ROI Calculator
- Salary vs Hourly
- Savings Goal
- Tax Calculator
- VAT
-
-
-
-
-
-
-
-
-
-
-
-
- Equation Solver
- Exponent Calculator
- Factorial Calculator
- Fibonacci Sequence
- Fraction Calculator
- Fraction Simplifier
- GCD Calculator
- GCD/LCM
- Least Common Multiple (LCM) Calculator
- Logarithm Calculator
- Magic Square
- Matrix Calculator
- Number Base Converter
- Pascal's Triangle
- PDE Solver
- Prime Checker
- Prime Factorization
- Roman Numbers
- Scientific Notation
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Broken Link Checker
- Canonical URL Checker
- Core Web Vitals Checker
- Favicon
- Heading Structure
- Keyword Density
- Meta Tags
- Mobile-Friendly Test
- Open Graph Tags
- Page Load Time Analyzer
- Redirect Checker
- robots.txt
- Schema Markup
- SEO Optimized Checklist
- XML Sitemap
- Time on Page Tracker
- Page Title & Desc.
- Twitter Card Generator
-
-
-
-
-
-
- Acceleration
- Substance Amount
- Angle
- Area
- Astronomical
- Base Converter
- Capacitance
- Electric Charge
- Data Transfer
- Data Storage
- Density
- Energy Converter
- Force Converter
- Frequency Converter
- Fuel Economy
- Illuminance
- Inductance
- Length / Distance
- Power
- Pressure
- Electrical Resistance
- Time
- Speed
- Temperature
- Viscosity
- Volume
- Weight
-
-
-
-
-