-1

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.

Joseph G
  • 1
  • 1
  • 1
    Are you sure a file share is really what you need? It sounds more like you need a document handling system. – vidarlo Aug 28 '23 at 09:07
  • 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. – Joseph G Aug 29 '23 at 15:18

0 Answers0