chmod 444 Permission Explained: Read-Only for Everyone
Octal
444
Symbolic
r--r--r--
Binary
100 100 100
Risk Level
Low Risk
Summary: Everyone can read; nobody can write.
| Class | Read (4) | Write (2) | Execute (1) | Octal |
|---|---|---|---|---|
| Owner (u) | 4 | |||
| Group (g) | 4 | |||
| Others (o) | 4 |
444
r--r--r--
Owner: read · Group: read · Others: read
chmod 444 filename
Low Risk
Any user can read this file — never use it for secrets such as keys or .env files.
View the full chmod 444 guide →
Advertisement
chmod 444 Breakdown
| Class | Digit | Symbolic | On a file | On a directory |
|---|---|---|---|---|
| Owner (u) | 4 |
r-- |
Read only | Can list names, but not enter |
| Group (g) | 4 |
r-- |
Read only | Can list names, but not enter |
| Others (o) | 4 |
r-- |
Read only | Can list names, but not enter |
Is chmod 444 Safe?
Low Risk
- Any user can read this file — never use it for secrets such as keys or .env files.
- Even the owner cannot modify this file without changing permissions first.
When not to use it
- Private credentials and configuration files that require periodic updates
Common Use Cases
- Published read-only data files and reference documentation
- Software license notices and checksum verification files
chmod 444 Command Examples
# Apply using octal mode
chmod 444 filename
# Apply using equivalent symbolic mode
chmod u=r,g=r,o=r filename
# Recursive command warning:
chmod -R 444 /path/to/dir
# Note: -R applies the same mode to files and directories. Use find to treat them separately:
find /path/to/dir -type f -exec chmod 444 {} +
# Verify permissions
stat -c '%a %A %n' filename # Linux
stat -f '%Lp %Sp %N' filename # macOS
# Example ls -l output:
-r--r--r-- 1 alice staff 1024 Jan 15 10:00 example.txt
umask Relationship
A umask of 333 makes new directories 444 and new files 444. Test umask values with our interactive Umask Calculator.
Advertisement
Frequently Asked Questions
What does chmod 444 mean?
Everyone can read; nobody can write. In octal notation, the owner receives 4 (read), the group receives 4 (read), and others receive 4 (read).
Is chmod 444 safe?
chmod 444 is classified as Low Risk. Any user can read this file — never use it for secrets such as keys or .env files.
What is chmod 444 in symbolic notation?
In symbolic notation, chmod 444 is represented as r--r--r--. You can apply this permission using the equivalent symbolic command "chmod u=r,g=r,o=r filename".
Related Permissions
Change one bit:
chmod 044
remove owner read
chmod 644
add owner write
chmod 544
add owner execute
chmod 404
remove group read
chmod 464
add group write
chmod 454
add group execute
chmod 440
remove others read
chmod 446
add others write
chmod 445
add others execute
Related Guides
Advertisement