Reset permissions plugin - stickiness ?

  • I have two drives mounted on two different systems, FS ntfs and ext4.

    I use and like what the Reset permissions plugin does, but here is the issue.


    After other apps or rsync or manually files get copied between those drives, I see permissions changed.


    Using the Reset permissions plugin would fix it, but I wonder if there is a way to make those permissions stick.


    Maybe it's unknown to me Reset permissions plugin functionality or possible a missing feature.


    In any case, what other people do in similar situation?


    Thx and have a nice weekend !

    • Offizieller Beitrag

    All the resetperms plugin does is reset the folders and files to the permissions that are set for the shared folder using chmod. There is nothing the plugin can do if another service changes the owner and/or permissions.

    omv 7.0.5-1 sandworm | 64 bit | 6.8 proxmox kernel

    plugins :: omvextrasorg 7.0 | kvm 7.0.13 | compose 7.1.4 | k8s 7.1.0-3 | cputemp 7.0.1 | mergerfs 7.0.4


    omv-extras.org plugins source code and issue tracker - github - changelogs


    Please try ctrl-shift-R and read this before posting a question.

    Please put your OMV system details in your signature.
    Please don't PM for support... Too many PMs!

    • Offizieller Beitrag

    To get the plugin to do that to multiple folders would require a lot of re-writing. If you just want to get it to run for the currently selected shared folder, just run /usr/sbin/omv-resetperms in scheduled job.


    Or you could make your own script to fix things:


    Call it fixperms.sh or something like that.

    Then run the script with

    fixperms.sh /srv/dev-disk-by-label-d1

    fixperms.sh /srv/dev-disk-by-label-d1 755 644 # use default perms

    omv 7.0.5-1 sandworm | 64 bit | 6.8 proxmox kernel

    plugins :: omvextrasorg 7.0 | kvm 7.0.13 | compose 7.1.4 | k8s 7.1.0-3 | cputemp 7.0.1 | mergerfs 7.0.4


    omv-extras.org plugins source code and issue tracker - github - changelogs


    Please try ctrl-shift-R and read this before posting a question.

    Please put your OMV system details in your signature.
    Please don't PM for support... Too many PMs!

    2 Mal editiert, zuletzt von ryecoaaron ()

    • Offizieller Beitrag

    Do you mean in the UI like here without any argument ?

    If you run the omv-resetperms from a scheduled job, it will operate on the "Public" shared folder you have selected in the web interface.

    omv 7.0.5-1 sandworm | 64 bit | 6.8 proxmox kernel

    plugins :: omvextrasorg 7.0 | kvm 7.0.13 | compose 7.1.4 | k8s 7.1.0-3 | cputemp 7.0.1 | mergerfs 7.0.4


    omv-extras.org plugins source code and issue tracker - github - changelogs


    Please try ctrl-shift-R and read this before posting a question.

    Please put your OMV system details in your signature.
    Please don't PM for support... Too many PMs!

  • All the resetperms plugin does is reset the folders and files to the permissions that are set for the shared folder using chmod. There is nothing the plugin can do if another service changes the owner and/or permissions.

    Maybe adding a feature to run resetperms on schedule would be a good idea?

    • Offizieller Beitrag

    Maybe adding a feature to run resetperms on schedule would be a good idea?

    That seems like it would be of limited use unless you could specify more than one folder.

    omv 7.0.5-1 sandworm | 64 bit | 6.8 proxmox kernel

    plugins :: omvextrasorg 7.0 | kvm 7.0.13 | compose 7.1.4 | k8s 7.1.0-3 | cputemp 7.0.1 | mergerfs 7.0.4


    omv-extras.org plugins source code and issue tracker - github - changelogs


    Please try ctrl-shift-R and read this before posting a question.

    Please put your OMV system details in your signature.
    Please don't PM for support... Too many PMs!

    • Offizieller Beitrag

    That's exactly what I meant !

    And as I mentioned a few posts up, changing to the plugin to work with multiple shared folders would require a lot of re-writing (which I don't have time for). I posted a quick script that you could use to do what you want in that same post.

    omv 7.0.5-1 sandworm | 64 bit | 6.8 proxmox kernel

    plugins :: omvextrasorg 7.0 | kvm 7.0.13 | compose 7.1.4 | k8s 7.1.0-3 | cputemp 7.0.1 | mergerfs 7.0.4


    omv-extras.org plugins source code and issue tracker - github - changelogs


    Please try ctrl-shift-R and read this before posting a question.

    Please put your OMV system details in your signature.
    Please don't PM for support... Too many PMs!

  • I was more trying to get some useful outcome from this conversation for other users in the future :)


    Re: the script, I tried it and something did not work (I did not have time to see what was wrong), it was complaining that the path was not found. Does it work for you ?


    fixperms.sh /srv/05f0ef79-519c-499e-b152-06feafe3f207/Videos/

    Path not found.

  • Fixed with


    if [ ! -d "${sfpath}" ]; then

    echo "Path not found."

    echo "${sfpath}"

    exit 1

    fi


    Full script thanks to ryecoaaron :


    • Offizieller Beitrag

    I fixed the original post. I didn't try the script. I just typed it out as something to start with.

  • WastlJ

    Hat das Label gelöst hinzugefügt.
  • The installed plug-in says "Software failure Press left mouse to continue - Requested page not found"

    I had it already in the past but in some way it fixed alone ... or better OMV did something that I did not realize :).


    Is there any command from SSH to rebuilt something that shall be applied ?

    • Offizieller Beitrag

    The installed plug-in says "Software failure Press left mouse to continue - Requested page not found"

    I had it already in the past but in some way it fixed alone ... or better OMV did something that I did not realize :).

    ctrl-shift-R


    Is there any command from SSH to rebuilt something that shall be applied ?

    Not sure I understand. The issue above is a client side issue. Can't fix that from the server.

    omv 7.0.5-1 sandworm | 64 bit | 6.8 proxmox kernel

    plugins :: omvextrasorg 7.0 | kvm 7.0.13 | compose 7.1.4 | k8s 7.1.0-3 | cputemp 7.0.1 | mergerfs 7.0.4


    omv-extras.org plugins source code and issue tracker - github - changelogs


    Please try ctrl-shift-R and read this before posting a question.

    Please put your OMV system details in your signature.
    Please don't PM for support... Too many PMs!

Jetzt mitmachen!

Sie haben noch kein Benutzerkonto auf unserer Seite? Registrieren Sie sich kostenlos und nehmen Sie an unserer Community teil!