I had been running Server 2003 on my Poweredge 860 supporting a RAID 5 volume for several years. Initially I just used SMB shares but later I installed Windows Services for UNIX and shared these using NFS. Many of you are aware I’m sure that server 2003 is nearing end of life. So I tried a couple of other solutions including FreeNAS but ended up with Server 2012 being my final choice.
I have set up the shares, and I can see the the IP of the NFS server from the OSMC GUI under Browse for New Share/Network File System (NFS) and when I browse the IP of the NFS server and see the different shares. However clicking the actual shares does nothing. I know that this is a permissions issue, and unfortunately I’m just not that clear on Windows/UNIX permissions.
On the Share I have selected No Server Authentication and Allow Unmapped User UNIX Access (by UID/GID).
I have created group and passwd files and copied them to the system32/drivers/etc folder.
I actually did see the WIKI entry for NFS and Windows Servers but I didn’t find the information I needed. As I mentioned, I did have a similar setup working fine on Windows Server 2003.
It’s been a while since I used NFS on WS2K12 (just Samba for now), but looking above again, I noticed you’ve given osmc a gid/uid of 1001. Can you change this to 1000? If you’re not using Raspbmc anymore, can you delete the ‘pi’ user and try it?
Sam, I’ve been busy with some other things so I haven’t been working steady on this. However, I have setup the event viewer on my server so I can see what happens from the server side. On the OSMC client I go to add a source, select NFS and the IP of the server shows up, I click this and the shares show up. So I click on for example Music and event viewer on the server shows this new event;
Mount operation succeeded.
Address:192.168.1.122
Share:/Music
However on the client side I cannot browse any further and see the contents of Share:/Music.
So, now I am wondering what logs I can look at on the OSMC client to see what is going on client side, and how to get to such log files.
I think you should try apply permissions for the highest root directory you can. Windows will then inherit the permissions further down if they are not set for the child directories
Pardon me if I sound a bit dense, but I think that you are saying that if \Music is a top level share then what ever permissions I apply there will be inherited by child directories and files.
I’m wondering if once I use the mount command at the client, is there a command I can run on the client to see the actual permissions of the mount as the client sees it?
OK, tried this and got this result;
osmc@osmc:/$ sudo mount -t nfs -o ro 192.168.1.125:/Music /home/osmc/Music
osmc@osmc:~$ ls -ald /home/osmc/Music
drwxr-xr-x 2 4294967294 4294967294 163840 May 23 22:01 /home/osmc/Music
So, this is telling me that nobody is the owner and nobody is the group, I think.
@sam my memory of this sort of change is you have to watch for the option to apply it for lower levels - otherwise it only gets carried down to subsequently created sub-entities.
Derek