More of an NFS problem than MythTV specifically, but I'm trying to share the videos Storage Group and it's not doing what it is supposed to do.
I've set up the following line in /etc/exports:-
Code: Select all
/somepath/videos -insecure,all_squash,anonuid=115,anongid=124,no_subtree_check Mac1(rw) Mac2(ro)
The uid and gid shown is that of the mythtv user who owns the directory and all its content and the first group of options applies to both hosts (names resolve correctly) of which one needs rw access and the other should be ro. I cannot see anything wrong with this and it kinda works. But, when I 'exportfs -a' this is the result of 'exportfs -v':-
Code: Select all
/somepath/videos Mac1.domain(ro,wdelay,insecure,root_squash,all_squash,no_subtree_check,anonuid=115,anongid=124,sec=sys,ro,root_squash,all_squash)
/somepath/videos Mac2.domain(ro,wdelay,insecure,root_squash,all_squash,no_subtree_check,anonuid=115,anongid=124,sec=sys,ro,root_squash,all_squash)
So it all looks correct except for one major problem. BOTH hosts are being offered ro access. If I add rw to the first 'joint' options group, exports are both rw, so it looks like the joint options (ro being the default) is overriding the individual options, but this is the wrong way around. The joint options are set and then individual options set for any host (on that line in the exports file) should override the joint ones. In fact the MythBuntu man page for exports shows an example that uses this in exactly the same way. It sets rw in the joint group, then overrides that with ro on one individual host. But my experience is that whatever is set in the joint group is NOT overridden by the host option.
I can't see how this could be any permissions problem of the underlying directories since as explained above, it can be made to export them rw. This is just something with exportfs that doesn't seem to be working right. What am I missing?
Anyone?