Linux - why am i allowed to remove root file?
- by 0xDEAD BEEF
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
-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 `adminfile'?
tada.. file is gone!
As i see it - others have only read permision for that file so they shouldnot be able to remove it.. :/