CIFS mount does not work with UID and GID

  • Hello,

    I have a problem with mounts using CIFS and I can't set UID=1000 or GID=1000 - error invalid agument

    Not help adding forceuid and forcegid.

    From what I found there is a problem with the new Kernel, BUG?

    Solves the problem I'm needed to have the suid bit set (chmod u + s / bin / ...)

    The only question is how to do this with Libreelec 10.0.3

    Code
    /bin/mount - is only for read
    /bin/umount - is only for read
    /usr/sbin/mount.cif - missing

    Edited once, last by RomanHT (November 6, 2022 at 8:23 PM).

  • Go to Best Answer
  • I don't know what you are doing, LibreELEC is a linux operating system oriented to the execution of Kodi, the whole system is read-only and supports a single user ("root"). If you need to use other types of users you will have to do this within docker containers.

  • Here's the problem, the docker defaults to the user "1000" and I can change folders that don't mount to a non-root user, so it probably isn't entirely true.

    Docker does not have access to root directories on the host.

    Thank you for the hint, I found a solution maybe.

  • Code
    Options=username=xxx,password=xxx,rw,vers=2.0,uid=1000,gid=1000,forceuid,forcegid

    Try using lowercase params first, and if that still doesn't work, see if adding forceuid,forcegid works?