[Solved] First steps with NFS (wiki not enough)

  • I know the Wiki-Page about the topic. Is there betteranother one? :D

    There is no info about where the config should be written. And no info about if it is able to run Kodi with a different uid. Because with LibreELEC 8 and Kodi 17.3 it looks like that kodi runs as "root" (uid=0).

    Do I have to give Kodi root-rights on my NAS to access an NFS-share from there? I won't. ;)

    Or can I modify the Kodi users itself?

  • Hi

    SMB/NFS shares are defined in /storage/.config/system.d (take a look at nfs.mount.sample).

    I'm using NFS v3 with these options :

    Options=hard,sync,intr,rw,vers=3,rsize=32768,wsize=32768

    You only need to give Kodi R/W rights if you want to be able to delete files from Kodi, or if you want Kodi to download subtitles where your videos are stored ;)

  • Kodi is "root" (uid=0).

    But on my NAS is a specialised user called "media" (uid=1001) and a group "media". I created them. It is part of my concept. Kodi need to adapted to it but I don't know how.

  • In the nfs server use the option for the share all_squash,anonuid=1001,anongid=Thegidforgroupmedia

    That should force kodi (running as root) to have permission using those u/gid

    Or you can also just use no_root_squash in the server