Linux - why am i allowed to remove root file?
Fresh3 days ago
Mar 15, 20263074 viewsConfidence Score0%
0%
Problem
Situation as follows: i do su to root, then i create admin file with cat > adminfile then i exit from root issuing exit command i can see following adminfile options -rw-r--r-- 1 root root 10 2010-06-16 16:25 adminfile however, after executing rm adminfile it really gets removed tada.. file is gone…
Error Output
-rw-r--r-- 1 root root 10 2010-06-16 16:25 adminfile reinis@reinis-desktop:~/Test/script$ rm adminfile rm: remove write-protected regular file `a…
Unverified for your environment
Select your OS to check compatibility.
1 Fix
Canonical Fix
Unverified Fix
New Fix – Awaiting Verification
Fix for: Linux - why am i allowed to remove root file?
Low Risk
You have write permission on the directory so you can remove any file from it. Deleting or creating a file is modifying the directory so you need appropriate permissions on the that, rather than the file itself. If you want to be able to modify the …
Awaiting Verification
Be the first to verify this fix
Sign in to verify this fix