chmod 212 Permission Explained
Notice: This is an unusual permission set: some classes have more access than the class above them. It is rarely correct in practice.
Octal
212
Symbolic
-w---x-w-
Binary
010 001 010
Risk Level
Critical Risk
Summary: chmod 212 gives the owner write, the group execute, and everyone else write.
| Class | Read (4) | Write (2) | Execute (1) | Octal |
|---|---|---|---|---|
| Owner (u) | 2 | |||
| Group (g) | 1 | |||
| Others (o) | 2 |
212
-w---x-w-
Owner: write · Group: execute · Others: write
chmod 212 filename
Critical Risk
Anyone on the system can modify or replace this file.
View the full chmod 212 guide →
Advertisement
chmod 212 Breakdown
| Class | Digit | Symbolic | On a file | On a directory |
|---|---|---|---|---|
| Owner (u) | 2 |
-w- |
Write only (rarely useful) | No practical effect without x |
| Group (g) | 1 |
--x |
Execute only | Can enter (cd) but not list contents |
| Others (o) | 2 |
-w- |
Write only (rarely useful) | No practical effect without x |
Is chmod 212 Safe?
Critical Risk
- Anyone on the system can modify or replace this file.
- Unusual: a lower class has permissions the class above it lacks.
Common Use Cases
212 is uncommon in standard Linux setups. The closest widely used permission is chmod 600.
chmod 212 Command Examples
# Apply using octal mode
chmod 212 filename
# Apply using equivalent symbolic mode
chmod u=w,g=x,o=w filename
# Recursive command warning:
chmod -R 212 /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 212 {} +
# Verify permissions
stat -c '%a %A %n' filename # Linux
stat -f '%Lp %Sp %N' filename # macOS
# Example ls -l output:
--w---x-w- 1 alice staff 1024 Jan 15 10:00 example.txt
umask Relationship
A umask of 565 makes new directories 212. Test umask values with our interactive Umask Calculator.
Advertisement
Frequently Asked Questions
What does chmod 212 mean?
chmod 212 gives the owner write, the group execute, and everyone else write. In octal notation, the owner receives 2 (write), the group receives 1 (execute), and others receive 2 (write).
Is chmod 212 safe?
chmod 212 is classified as Critical Risk. Anyone on the system can modify or replace this file.
What is chmod 212 in symbolic notation?
In symbolic notation, chmod 212 is represented as -w---x-w-. You can apply this permission using the equivalent symbolic command "chmod u=w,g=x,o=w filename".
Related Permissions
Change one bit:
chmod 612
add owner read
chmod 012
remove owner write
chmod 312
add owner execute
chmod 252
add group read
chmod 232
add group write
chmod 202
remove group execute
chmod 216
add others read
chmod 210
remove others write
chmod 213
add others execute
Related Guides
How to Fix "Permission Denied" in Linux
Troubleshooting guide for Linux Permission Denied errors. Learn how to verify ownership, fix mi...
WordPress File Permissions (Recommended Settings)
Official security guide for WordPress file permissions. Learn why directories need 755, files n...
Linux File Permissions Explained
Master Linux file permissions. Understand owner, group, and others classes, read/write/execute ...
Advertisement