Answer the question
In order to leave comments, you need to log in
How to disable the deletion of files in a folder, but at the same time allow the creation of files?
The people, how to prohibit deleting files in a folder, but at the same time allow creating files?
using: chattr +i folder files are not deleted but not created either.
Maybe there is a solution?
Answer the question
In order to leave comments, you need to log in
Use sticky bit.
chmod +t FOLDERNAME
Or digitally: chmod 1775 FOLDERNAME
As an option to create files by a user who has write permissions.
And read only to those who have only rights to read.
---
Well, or chattr +i "concrete file"
---
And you can't put an attribute on a folder even as a root.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question