[all variants] basic chmod question

view story

http://ubuntuforums.org – Hi all, I was playing around with chmod and I found that even files are protected from being written, I can delete them. In the following example, I create as a root a file named foo and remove all access permissions. However, I'm still able to delete it with a regular user. Code: user@user-AO532h ~/dr/N02 $ sudo touch foo user@user-AO532h ~/dr/N02 $ sudo chmod 000 foo user@user-AO532h ~/dr/N02 $ ls -l total 12 ---------- 1 root root  0 2012-11-28 23:30 foo -rw-r--r-- 1 user user 3 2012-11-28 23:11 hh -rw-r--r-- 1 user user 4 2012-11-28 23:00 hh1 -rw-r--r-- 1 root r (Hardware)