I have a linux mint machine which provides a kind of file dump which gets provided via a nginx.
My problem is, that a single user (upload_usr) should be able to place new files/directorys inside one specific folder, but he shouldn't be allowed to replace or change any existing file.
This should work like this:
- put a.txt -> fine
- put a.txt -> disallow
- cat a.txt -> fine
- put b.txt -> fine
- rm a.txt -> disallow
Important is, that an other user which isn't root needs to be able to r/w in this dir.
What would be the easiest way to achieve this?