Manage user access to different folders inside a disk?

  • Hello everyone,


    I recently got OMV 6 setup and running properly. I have a total of 3 drives:

    1. SSD 100gb (Referred to as A)

    2. HDD 1tb (Referred to as B)

    3. HDD 1tb (Referred to as B, to be used as a mirror/backup of B)


    I wanted to setup it up in a way that every user has write access to his own folder but has read access to all the other users folders inside B. Something like this:

    - A

    --- abc.txt

    - B

    --- Alpha

    ------- 1.txt

    ------- 2.txt

    --- Beta

    ------- 1.png


    Here I want the SSD to be used as a common drive with no read or write restrictions. In B however I want it such that user Alpha only has write access to Alpha but has read access to the whole B drive, the same for beta.

    I tried messing around with shared folders and SMB shares but couldn't get it to work. Would really appeciatiate if someone could help.

    Thanks a lot!


    PS: Also how would I go about setting up a backup task to safely mirror the B drive over to the C drive using rsync or rsnapshot?

    • Official Post

    In B however I want it such that user Alpha only has write access to Alpha but has read access to the whole B drive, the same for beta.

    I guess you have to do it by folder. So Alpha has read/write access to Alpha and read access to Beta, Gamma, Delta, Epsilon, .....

    PS: Also how would I go about setting up a backup task to safely mirror the B drive over to the C drive using rsync or rsnapshot?

    rsync gives you a mirror (check the "delete" option which might make a difference).

    rsnapshot gives you snapshots. So you have one complete file set for each run of rsnapshot. This gives you the possibility to go back in time and restore a previous version of a file. Or even a file that has been deleted in a more recent snapshot. Rsnapshot gives you a versioned backup.

    As rsnapshot is using hardlinks for unchanged files, each snapshot will only use additional space for new or changed files.

  • I guess you have to do it by folder. So Alpha has read/write access to Alpha and read access to Beta, Gamma, Delta, Epsilon, .....

    Okay, I was hoping I could add all of them to a single group and give it read only access to all the folders but then manually give each write access but that didn't seem to work so I thought I might be doing something wrong.


    Also do I have to individually share each folder in SMB? When I do that that shows up as:

    -A

    -Alpha

    -Beta


    instead of

    -A

    -B

    --- Alpha

    --- Beta


    Am I doing something wrong here? Is there some way to show the nesting properly?

    Thanks

  • Maybe you want to read what i wrote today: RE: SMB Permissions issues with secondary groups?

    I think I've got the user management done now. I was wondering how I could correct the directory listing so that the two drives show up together and the user directories are listed inside the second drive. Right now the first directory show up but all the other show up right next to it named B-Alpha and B-Beta, I tried using A/Alpha in SMB share but it still didn't work.

  • I think I've got the user management done now. I was wondering how I could correct the directory listing so that the two drives show up together and the user directories are listed inside the second drive. Right now the first directory show up but all the other show up right next to it named B-Alpha and B-Beta, I tried using A/Alpha in SMB share but it still didn't work.

    This is not something which can be done with OMV. smb shares are named like the shared folders.

    You will have to use one share and use ACLs to protect subdirectories. Learn about ACLs, but please do not expect too much support here if done wrong.

    If you got help in the forum and want to give something back to the project click here (omv) or here (scroll down) (plugins) and write up your solution for others.

  • This is not something which can be done with OMV. smb shares are named like the shared folders.

    You will have to use one share and use ACLs to protect subdirectories. Learn about ACLs, but please do not expect too much support here if done wrong.

    Alright thank you!

  • DentFuse

    Added the Label resolved

Participate now!

Don’t have an account yet? Register yourself now and be a part of our community!