Score:-1

Cannot block file deletion on OpenMediaVault6

ch flag

I have installed OMV6 and read most of the docs, but I simply can't find a direct way to simply block deletion of files to any user. Yes, the users must create new folders and files and have access (R+W), but they can NOT delete files. It doesn't work through bash and I can't see the option on OMV6 (would appreciate if there were any secret plugin or extra that does that). I've tried the sticky bit perm:

sudo chmod +t /sharedfolder

Checking file permissions, they are now sticky bits (drwxrwxr-t), but I can simply remove them and any user can do so. I have also used chattrd, but it just makes them immutable:

sudo chattr +i *

Also, within the folder, applying the following:

chmod -R a+rw *
chattr +a *

And to the whole directory:

chmod +t shared/

That agains just makes the files immutable.

Obs(rant): Honestly cannot find a single reason why is this so complicated to do in both *Nix systems and OMV, since it's the most common user mistake ever. I need the folder to be public, I need them to write/read and I need them to not delete them. Seems like I'm the first person on earth that wants to do that.

vidarlo avatar
ar flag
Are you sure a file share is really what you need? It sounds more like you need a document handling system.
Joseph G avatar
ch flag
Yes, I need public file sharing. There's a (proprietary) management software in my company that needs smb public (image) sharing. No, they won't change systems.
I sit in a Tesla and translated this thread with Ai:

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.