The code says it all:
max@serv$ chmod 777 .
Well, he does not say everything.
On UNIX and Linux, the ability to delete a file is not determined by the access bits of this file. It is determined by the access bits of the directory that contains the file.
Think of it this way: deleting a file does not modify this file. You are not writing a file, so why the "w" in the file? To delete a file, you need to change the directory pointing to the file, so you need a "w" in that directory.
Robα΅© Nov 17 '11 at 23:14 2011-11-17 23:14
source share