Folder Share in Cloud storage using SMB protocol

  • Dear friends


    I mounted a storage as a Remote Mount disk, and I created a folder in share folder, and give one user read/write permission, but in the user side, this user doesn't have write permission in subfolders, I tried to give the folder the required permission in ACL by checking mark the "Recursive", but I just receive this error message: (Openmediavault version 6.0.24)


    Failed to execute command 'export PATH=/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin; export LANG=C.UTF-8; export LANGUAGE=; setfacl --remove-all --recursive -M '/tmp/tJr2ZN' -- '/srv/remotemount/NormalStorage/TestFolder/' 2>&1' with exit code '1': setfacl: /srv/remotemount/NormalStorage/TestFolder/: Operation not supported

    setfacl: /srv/remotemount/NormalStorage/TestFolder//test: Operation not supported


    OMV\ExecException: Failed to execute command 'export PATH=/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin; export LANG=C.UTF-8; export LANGUAGE=; setfacl --remove-all --recursive -M '/tmp/tJr2ZN' -- '/srv/remotemount/NormalStorage/TestFolder/' 2>&1' with exit code '1': setfacl: /srv/remotemount/NormalStorage/TestFolder/: Operation not supported

    setfacl: /srv/remotemount/NormalStorage/TestFolder//test: Operation not supported in /usr/share/openmediavault/engined/rpc/sharemgmt.inc:1136

    Stack trace:

    #0 /usr/share/php/openmediavault/rpc/serviceabstract.inc(619): Engined\Rpc\ShareMgmt->Engined\Rpc\{closure}('/tmp/bgstatuswv...', '/tmp/bgoutputdY...')

    #1 /usr/share/openmediavault/engined/rpc/sharemgmt.inc(1140): OMV\Rpc\ServiceAbstract->execBgProc(Object(Closure))

    #2 [internal function]: Engined\Rpc\ShareMgmt->setFileACL(Array, Array)

    #3 /usr/share/php/openmediavault/rpc/serviceabstract.inc(123): call_user_func_array(Array, Array)

    #4 /usr/share/php/openmediavault/rpc/rpc.inc(86): OMV\Rpc\ServiceAbstract->callMethod('setFileACL', Array, Array)

    #5 /usr/sbin/omv-engined(537): OMV\Rpc\Rpc::call('ShareMgmt', 'setFileACL', Array, Array, 1)

    #6 {main}

    • Official Post

    I mounted a storage as a Remote Mount disk, and I created a folder in share folder, and give one user read/write permission, but in the user side, this user doesn't have write permission in subfolders, I tried to give the folder the required permission in ACL by checking mark the "Recursive", but I just receive this error message:

    You should review the permissions for that share in the origin. They are restrictive compared to what OMV "sees" in the remote mount.

  • chente
    Hi and thanks for your answer, but could you please help me with more details? because I gave the access that I gave to another folder in local hard drive, but as far as you wrote, maybe giving permission to the folders in the remote mount is different, but I couldn't find how??

    if you have more information, it will be really kind of you to help me :)

    • Official Post

    but could you please help me with more details? because I gave the access that I gave to another folder in local hard drive, but as far as you wrote, maybe giving permission to the folders in the remote mount is different, but I couldn't find how??

    You have to understand that remote mount behaves as if it were a user accessing a share on another server. This means that if the remote server hasn't granted enough permissions, that situation will be repeated for everything you do on the local server with that remote mount.

    Starting from that base, you must configure the share on the remote server with read and write permissions for a user, the one you want. Then use that user to do that mount on the local server. From there you will not have permission problems.

    On the other hand, I see that you have configured ACL permissions, I suggest you don't use them, in 99% of cases they are not necessary and they just make things too complicated.

    If you have access to the folder but not to the subfolders, it's probably because the remote share is also configured like this, you should check that too.

  • chente


    Hi and thanks again for your explanation. I checked the folders using SMB protocol and the admin user and password, but I don't have any problem with write permission in subfolders there, I just have this issue, when I added this storage as a remote mount on the Openmediavault, and created a user and give it the required permissions, everything is worked, just I don't have the write permissions in subfolders, when I share this folders using openmediavault.

    do you have some tricks that is maybe special for remote mount storages?? maybe we should do some different setting for this type of storage?


    Thanks again for your great help and taking a lot of time and effort.

    • Official Post

    I checked the folders using SMB protocol and the admin user and password, but I don't have any problem with write permission in subfolders there, I just have this issue, when I added this storage as a remote mount on the Openmediavault, and created a user and give it the required permissions, everything is worked

    In that case it appears that the remote mount configuration is correct.


    just I don't have the write permissions in subfolders, when I share this folders using openmediavault.

    That would mean that the problem is in your configuration of the share on the local server. You should check those settings, it is possible that the problem is the modifications you made to the ACL permissions. You can use the openmediavault-resetperms plugin to reset the permissions and remove the ACL permissions at the same time. https://wiki.omv-extras.org/do…6:omv6_plugins:resetperms

  • Actually, I just installed a new openmediavault, without any extra configurations and any extra setting also without ACL configuration, and with same share folder permission in local storage and remote storage, I have different result, for local storage everything is working perfectly, but for remote storage' share folders I don't have write permissions in subfolders!!!!

    chente

    • Official Post

    Actually, I just installed a new openmediavault

    That's not relevant, the permissions set at the file level will be maintained even if you install OMV again. So if you previously set any ACL permissions on those files and subfolders it is still there.

    • Official Post

    I did it, I also applied ACL reset, but unfortunately nothing changed, do you have any other idea?

    Give me more details. Hardware, file system format, OMV share details...

  • I'm using OVM version 6.4.0-3, processor: Intel(R) Xeon(R) Silver 4208 CPU @ 2.10GHz, kernel: Linux 6.1.0-0.deb11.7-amd64

    in Remote Mount, I have a server mounted using cifs protocol

  • chente regarding the remote server, I don't have enough information, I just received the username and password, and everything works without any issue when I just using the space via SMB protocol.

  • at this moment for finding the problem is in the storage side or no, I tried to mount another server, this server is a windows server, that I just created for a test with a share folder inside, I mounted this server, and try previous steps, but result is the same, I have access to main folder, but I don't have access to write in this folder, for example I couldn't create new folders or new files! so we can find the problem is nor related to the storage side or server side. maybe I just need some additional steps when I created a remote mount!! I also followed many videos and documents, they also just learn up to having access to main folder, the result is not clear if they also have access to write there or no!!


    chente do you is there any additional support of openmediavault?? how can I ask their support to help me?

    • Official Post

    do you is there any additional support of openmediavault?? how can I ask their support to help me?

    The only support I know of is this forum or github. I'm going to quote ryecoaaron but I suspect he's going to tell you the same thing, that the problem is on the remote server side.

  • I don't think so, I installed a new fresh windows with just a simple share folder by full permission and used this one as a remote mount storage and unfortunately the result was the same, so I think the problem should be somewhere in openmediavault, that I tried many ways but none of them is not working.

    • Official Post

    There are only two things it can be:

    1. Your settings in the remotemount entry
    2. A setting on the remote server.

    If it is 1, it is hard to help because we don't know about 2.

    If it is 2, it is hard to help because we don't know about 2.

    omv 6.9.0-1 Shaitan | 64 bit | 6.2 proxmox kernel

    plugins :: omvextrasorg 6.3.1 | kvm 6.2.16 | compose 6.10.3 | cputemp 6.1.3 | mergerfs 6.3.7


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


    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!

  • Could you please help me which setting else we need when we want to share a folder in remote mount storage, I didn't every setup that I did for normal local disk that is connected to the openmediavault, for normal disk everything is working easily, but for remote mount I don't have write access to the sub folders, as you can find in my previous messages, I tried with two servers for remote mount. do you have any experience? @

    ryecoaaron

    • Official Post

    for remote mount I don't have write access to the sub folders, as you can find in my previous messages, I tried with two servers for remote mount. do you have any experience?

    Sorry, I'm not sure what you mean. If you don't have write access, then either your user you specify in the remote mount setup doesn't have write access or something is preventing it on the remote server side. ACLs will not help this.

    omv 6.9.0-1 Shaitan | 64 bit | 6.2 proxmox kernel

    plugins :: omvextrasorg 6.3.1 | kvm 6.2.16 | compose 6.10.3 | cputemp 6.1.3 | mergerfs 6.3.7


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


    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!