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

Re: File permission confusion [Debian 9.1 with MATE]



On Mon, Jan 01, 2018 at 11:28:37AM -0600, Richard Owlett wrote:
WHY should one with "Read-only" access be able to delete it?

A number of people have already explained that the ability delete requires write permission on the directory containing the file. You don't seem to have acknowledged that. This is the only way the semantics make sense, or else a user would be able to create a file that the owner of the directory would not be able to get rid of. As someone else already posted, when you delete a file you're not really deleting the file--you're removing one of potentially many directory entries in one of potentially many directories. Most people can get by without knowing that, and acting as though the directory entry and the file are unique and related, but if you start trying to manipulate permissions it is important to understand what's actually going on.

Mike Stone


Reply to: