Calculate Unix/Linux file permissions
644-rw-r--r--chmod 644| Read (r) | Write (w) | Execute (x) | Value | |
|---|---|---|---|---|
| 👤 Owner (u) | 6 | |||
| 👥 Group (g) | 4 | |||
| 🌍 Other (o) | 4 |
3-digit (755) or 4-digit with special bits (4755)
| Symbol | Value | Meaning |
|---|---|---|
| r | 4 | Read |
| w | 2 | Write |
| x | 1 | Execute |
| - | 0 | No permission |
| Bit | Value | Description |
|---|---|---|
| SetUID (s) | 4 | Execute as owner |
| SetGID (s) | 2 | Execute as group |
| Sticky (t) | 1 | Only owner can delete |
- (file)
d (dir)
rwx = 7
r-x = 5
r-- = 4
755 means: Owner can read/write/execute (7), Group can read/execute (5), Others can read/execute (5). Common for directories and executable scripts.
644 (rw-r--r--) is for regular files - owner can read/write, others can only read. 755 (rwxr-xr-x) adds execute permission, needed for directories and scripts.
Special bits include: Setuid (4xxx) - run as owner, Setgid (2xxx) - run as group, Sticky bit (1xxx) - only owner can delete. Used for special system requirements.
777 gives everyone full read/write/execute access. This is a security risk as any user or process can modify or delete the file. Avoid on production systems.
Symbolic notation like 'rwxr-xr--' shows permissions in groups of 3: owner (rwx), group (r-x), others (r--). r=read, w=write, x=execute, -=no permission.
Category:
Developer Tools →Encode text or files to Base64, or decode Base64 back to its original form. Supports URL-safe Base64...
Format, validate, minify, and explore JSON data. Interactive tree view with syntax highlighting and ...
Build and understand cron expressions visually. Schedule tasks with human-readable explanations and ...