[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 07:13:19PM +0100, tomas@tuxteam.de wrote:
The nice thing about chattr is that you can protect the
file's directory entry (which one?) from being deleted.
But I agree that using chattr without having first
understood chmod is like using a circular saw without
having first mastered the screwdriver. Not recommended :-)

It also requires superuser, so it isn't going to help at the user level.
There is nothing a user can do to *prevent* himself from destroying his own files, but simply removing write permission from the file & directory will keep it from happening accidentally (he could still put back write permission and delete/modify the file).
Mike Stone

Reply to: