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

Re: Something weird about file permissions

That is very logic. And I should have known it (?!)

Thank you.

> 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 delete a file, the directory is being modified,
> which means writing into the directory (in UNIX and Linux, directory
> and everything else is after all files).
> So, if you remove the write permission from the directory, then you
> would not be able to delete a file from it.

Reply to: