I have a few directories that I want to lock. This lock should provide the following:
Disallow anyone (including myself) from removing from that directory without a password
Disallow anyone (including myself) from changing existing files in that directory and recursive directories without a password
It shouldn't prevent new files from being added by myself but should prevent it from others (but not root)
I am using Operating System: CentOS Linux 7 (Core)
.
How can I achieve this behavior?
chattr
, just a directory as root with 755 rights (default with common umask) on that dir – Gilles Quénot Apr 20 '23 at 18:59