[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: can't delete a file



Patrick Hsieh wrote:
Hello list,

I created a file as root and chown it to a common account, then su to
that account, trying to delete it as that account but failed. Any idea?


this is one of the most problems for unix newbies...

basically, when you remove a file you don't modify it, but the directory that contains it. so to remove a file you need write permission on the directory, and the permissions on the file are almost completely irrilevant.

hope this helps.

pietro.





Reply to: