I am managing some folders on our server. The server runs:
REDHAT_SUPPORT_PRODUCT="Red Hat Enterprise Linux" REDHAT_SUPPORT_PRODUCT_VERSION="7.6"
I have created a directory in "/srv/" and named it "test". I have added another directory called "archived" inside "test".
I have created project_managers user group and added some users to this group. project_managers have read/write/execute permission for "/srv/test/" recursively.
I want the project_managers to be able to move files from one directory to another but not to be able to delete the files entirely from the server.
For example I want project_managers have permission to move "/srv/test/my_code.py" to "/srv/test/archived/" but do not have permission to delete "/srv/test/my_code.py"
I have done: sudo chattr -R +i /srv/test/
It prevents both deleting and moving files.
Is it possible to make files undeletable but moveable?