Linux cannot read mounted NFS share
#1
Hello,

I am using a Linux server as NFS-server to host my movies. I exported the movie directory via NFS. The export file looks like this:
Code:
/srv/media/videos       192.168.100.0/255.255.255.0(rw,all_squash,insecure,async,no_subtree_check)

I have two Raspberry Pis running the same version of Kodi 15.2. The NFS share is mounted from /etc/fstab with this line:
Code:
192.168.100.11:/srv/media/videos /srv/media/videos/ nfs defaults    0   0

On one of Raspberrys this setup works fine, the other one does not play any movie.When I try to read any file in a SSH session on one Rapsi inside the NFS share I get a 'Operation not permitted'. The same file is readable from the other Raspi.


This is the working one:
Code:
osmc@kodi2:~$ ls -l /srv/media/videos/Test.txt
-rw-r--r-- 1 root root 5 Nov  7 23:55 /srv/media/videos/Test.txt
osmc@kodi2:~$ cat /srv/media/videos/Test.txt
Test
osmc@kodi2:~$ id
uid=1000(osmc) gid=1000(osmc) groups=1000(osmc),4(adm),6(disk),7(lp),20(dialout),24(cdrom),29(audio),44(video)


This one does not work:
Code:
osmc@kodi1:~$ ls -l /srv/media/videos/Test.txt
-rw-r--r-- 1 root root 5 Nov  7 23:55 /srv/media/videos/Test.txt
osmc@kodixbmc1:~$ cat /srv/media/videos/Test.txt
cat: /srv/media/videos/Test.txt: Operation not permitted
osmc@kodi1:~$ id
uid=1000(osmc) gid=1000(osmc) groups=1000(osmc),4(adm),6(disk),7(lp),20(dialout),24(cdrom),29(audio),44(video)

There must be a difference between these two NFS clients, but I can't find it.
Has anyone an idea where to search?

Thanks in advance,
linuxuser
Reply

Logout Mark Read Team Forum Stats Members Help
cannot read mounted NFS share0