Hello all!
Ok I'm not 100% sure about this. But how exactly if you use the libreelec interface does it connect to NFS? What user does it connect as, or does it always try to connect to an NFS share as root?
The reason I am asking is because I'm having a permissions problem with an NFS Share. The computer I have running libreelec is connected via ethernet to a second computer running an NFS share (courtesy of Openmediavault). Both computers can see each other over the network, I can see the files via NFS but for one problem - I only have read only access. The computer running openmediavault is a PC I use to back up onto and I was hoping to move across recorded on the machine running libreelec to the openmediavault machine. But no luck. Both PCs are just ordinary x86 boxes btw.
If I try, I get the following error message (libreelec): "Failed to copy at least one file. Check the log for more information about this message. Operation was aborted".
Digging a little deeper and finding where the libreelec log file is (in my case, $HOME/.kodi/tmp/kodi.log) I found this:
00:55:40.970 T:139798548895488 ERROR: CNFSFile::Open: Unable to open file : '//b.txt' error : 'open call failed with "NFS: ACCESS denied. Required access rw-. Allowed access r--"'
(b.txt is just a test file I tried to copy).
So it looks as the reason why the file can't be copied is because of a permissions problem - rw is needed, but got r (read). That is intresting as on other computers I have rw access on that openmediavault computer, and I have it set up to be that way in libreelec -- NFS shares are mounted as rw in the openmediavault settings for example; shared folders also too have rw access. Am I correct in thinking when file manager in libreelec connects to NFS it does so as root - even when a profile setting is used (and that this could be causing the problem?).
Only reason I bring up the issue of root is because from memory I think that write operations in openmediavault are blocked by default for security reasons. If libreelec was trying to write as root it wouldn't work.
NB: The openmediavault PC is configured to be on IP address 192.168.1.x (to keep it away from wifi/internet devices, which are on a slightly different IP address; 192.168.0.x) . I simply used manual configuration as opposed to DHCP in libreelec for ethernet (also on 192.168.1.x) and in libreelec/filemanager used "add source" to add the NFS share.
Thanks
ljones