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

Re: File permission confusion [Debian 9.1 with MATE]



On 01/01/2018 11:34 AM, Michael Stone wrote:
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


It's one of those theory and ability to apply.
That's why I asked for pointer suitable tutorial.
[https://lists.debian.org/debian-user/2018/01/msg00008.html]




Reply to: