Re: Something weird about file permissions

2009-03-31 Thread mylists
That is very logic. And I should have known it (?!) Thank you. josep > No write access on file means, you can not write into the file. > > Deleting a file != writing into the file > > So, the operation is allowed. > > However, deleting a file = writing into the directory. > > Because when you de

Something weird about file permissions

2009-03-31 Thread mylists
Hi guys! Something is very weird or I didn't sleep enough last night. I am puzzled. How can an ordinary user delete a file he has no write access? See this example: p...@montblanc:~$ cd /tmp/ p...@montblanc:/tmp$ mkdir test; cd test p...@montblanc:/tmp/test$ sudo touch file_owned_by_root p...@mont