NFS mounting between Fedora and OpenSolaris
I'm having the following problem:
I'm setting up a network of two Virtual Machines, one is running Fedora Core 4, the other OpenSolaris 2008.05. The network itself is working fine. It's not intended to ever be connected to the outside world, so security can be as low as possible.
I have to share a folder from Fedora to Solaris via NFS - Fedora being the Server and Solaris the client. I'm aware that NFS identifies users by UID, so my /etc/exports on the Fedora looks like this:
The idea is that all requests will be treated as coming from the Fedora user with UID 500, who is owner of /usr/mydir (not of all of the files inside though).
Now, on the Solaris machine I want the shared directory to be mounted by automount, so my file /etc/auto_master is:
/net -hosts -nosuid,nobrowse
/home auto_home -nobrowse
and the /etc/auto_direct looks like this:
The mounting itself seems to work ok, because when I run automount -v I get the message
automount: /usr/mymountpoint mounted
(or unmounted, on alternate runs, of course)
So the directory seems mounted, but I can't access it! When I try an ls /usr/mymountpoint I get a 'Permission denied'. I suspect that there is still a problem with the UID, but I thought I had it fixed by using the options mentioned above in my Fedora /etc/exports file.
And now comes the even weirder part:
I tried to mount it manually from the Solaris, by the command
mount fedorahost:/usr/mydir /usr/mymountpoint
and then it doesn't even mount, I get the message
nfs mount: mount: /usr/mymountpoint: not owner
but I am owner of the mountpoint! I changed ownership of the mountpoint from myuser to root and back, and it didn't make a difference.
If anyone has some ideas on this, I'd be really grateful! It's the first time I'm working with Solaris, so I might have missed something obvious.