I know there is the +i flag for files and directories, but i have a deeper Problem.
Is there a way to prevent a folder from being deleted by an User which should be able to create / access / remove files and folders INSIDE the delete-protected folder?
sudo chattr +i testfolder flag wont help because then a user can only read files, but not create or delete these.
sudo chattr +a testfolder flag wonth either help because then a user can write and read files, but only append edit files and dont remove them.
I need a solution where a user is able to write, access and remove Files but can't delete the root/parent folder.