problem running chown on file system - "cannot access '/ddata': No such file or directory"

  • hello

    I'm having a little issue i'm trying to troubleshoot, and I want to run

    Code
    sudo chown -R $USER:$USER /ddata
    sudo chmod -R a=,a+rX,u+w,g+w /ddata


    on my "data" directory just to make sure that it isn't a permissions thing (I don't think it is, but anyway). So I copy the absolute path of my 'data' directory from the OMV GUI, ssh in as root (I presume I might need all the access possible..), cd .. down one level so I can see the actual directory, run the chown command - no such directory, even though I can see it!

    if I go up into ddata (which it does allow!) and try it on one of the sub-directories there, same issue


    Does OMV restrict the changing of the permissions somehow?

    Is there actually somewhere else I should be applying changes to (some sort of bind or symlink which i'm trying to change the wrong end of - you can probably tell i'm just guessing now, but I am very much at the guessing stage!!)

    The ddata directory was being shared with nfs (but it's not now - I took it off to check this wasn't the issue)


    Any ideas what I'm doing / have done wrong? (and ideally how to fix things!)


    thanks

    • Official Post

    It's easier to do it like this:

    Code
    sudo chown -R appuser:users /srv/dev-disk-by-uuid-b8422a16-c905-4b41-becb-a38e3f3ce159/data/shares/ddata

    I suspect you don't need to do any of this anyway. Maybe this is useful for you: https://wiki.omv-extras.org/do…omv7:nas_permissions_omv7

    • Official Post

    You are using an absolute path with sudo chown -R appuser:users /ddata.


    Just use sudo chown -R appuser:users ddata


    otherwise you need to use sudo chown -R appuser:users /srv/dev-disk-by-uuid-b8422a16-c905-4b41-becb-a38e3f3ce159/data/shares/ddata

    omv 8.0.10-1 synchrony | 6.17 proxmox kernel

    plugins :: omvextrasorg 8.0.2 | kvm 8.0.4 | compose 8.1.2 | cterm 8.0 | borgbackup 8.1 | cputemp 8.0 | mergerfs 8.0 | scripts 8.0.1 | writecache 8.1


    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!

Participate now!

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