FG

removing write permission does not prevent root from writing to the file

Fresh3 days ago
Mar 15, 202635644 views
Confidence Score0%
0%

Problem

I just noticed on my Ubuntu machine (ext3 filesystem) that removing write permissions from a file does not keep root from writing to it. Is this a general rule of UNIX file permissions? Or specific to Ubuntu? Or a misconfiguration on my machine? Writing to the file fails (as expected) if I do this …

Unverified for your environment

Select your OS to check compatibility.

1 Fix

Canonical Fix
Unverified Fix
New Fix – Awaiting Verification

Fix for: removing write permission does not prevent root from writing to the file

Low Risk

1) This is a normal behaviour. root has rw access on all files at all times. 2) You can protect a file even from root (not deliberate action, but accidental, anyway) by using That is "change attributes add immutable". To remove the protection: have …

Awaiting Verification

Be the first to verify this fix

Sign in to verify this fix

Environment