💻 Software
Why a non-root user can delete files created by root?
Fresh5 days ago
Mar 15, 20264636 viewsConfidence Score0%
0%
Problem
Given a non-root user "joshua", as root I created a file called "foo" at joshua's home directory (/home/johsua/); it look like this: and then delete it as joshua, i can delete it successfully. I would expect that joshua doesn't have enough permission to delete it. Is it some kind of 'Permissions in…
Error Output
-rw-r--r-- 1 root root 0 12-19 21:00 foo
Unverified for your environment
Select your OS to check compatibility.
1 Fix
Canonical Fix
Unverified Fix
New Fix – Awaiting Verification
Fix for: Why a non-root user can delete files created by root?
Low Risk
The user didn't delete the file, the system did. The user merely removed the file from his own directory. The system deleted the file because its reference count dropped to zero. It's just happenstance that the user removing the file from the direct…
Awaiting Verification
Be the first to verify this fix
Sign in to verify this fix