I would like to ask how to set the sticky bit feature (delete only the files I own) on a subfolder in a group folders folder. Which application and its combination allow me this functionality (tags, flows, etc.) and if it is possible at all.
Thank for any ideas.
The data in Nextcloud is managed by nextcloud core itself. The actual data on the hard drive is all owned by one single user (the user PHP is running as). So, sticky bits do not make much sense here.
Now, I see two things related here:
If you share a folder with another user/group inside Nextcloud, you can define the sharing permissions. There, you can go to advanced settings and deselect the delete permission. The sharee will no longer be able to delete your files inside the share. Deleting the complete share is still possible (in fact unsharing it).
If you are using an external storage, then you might be concerned with the permissions on the hard drive as the files might be shared with host users. This is then a problem outside of Nextcloud. Here, the point might be to use file system ACLs with default permissions and a dedicated user for PHP. This however is sort of brittle, depending on your use-case.
thank you for your reply. I didn’t mean directly replicating the sticky bit from the filesystem. I listed it only to give an idea of the required functionality. In short, I need to set up a shared directory where users will have the right to read and write files, but they can only delete files that they have created themselves. The data is local from nextcloud’s point of view, because it is a subfolder of a defined group folder. The standard extended permissions on the group folder, in my opinion, do not allow this option. I wanted to ask if anyone has already solved this. E.g. by automatically tagging and setting permissions in the Flow app with File Access. Thank you
Petr