On my Ubuntu system, I have this line in /etc/fstab:
myserver:/home/me /mnt/me nfs rsize=8192,wsize=8192,timeo=14,intr
When I do
sudo mount -a
I get:
mount.nfs: access denied by server while mounting myserver:/home/me
How can I diagnose this problem? The nfs server is also Ubuntu.
Additional details: I am able to mount this nfs share from other Ubuntu clients on the same network with no problem. However, the problematic client is different in that it is running inside VirtualBox on a Windows system. I can ping "myserver" fine from the problematic client.
EDIT: /etc/exports on "myserver":
/home/me *(rw,all_squash,async,no_subtree_check,anonuid=1000,anongid=1000)
/etc/hosts.allow and /etc/hosts.deny on "myserver" are both all comments. And keep in mind, that I can connect fine from other clients on the same network.
-
hi,
check the files
hosts.allow
andhosts.deny
and whether the client is entered correctly. when this does not help, please post your export file.JoelFan : see my edits in the questionFrom Christian -
Have you verified that the name resolution is correct on the server for the client that is trying to connect (and is listed in the exports file)?
JoelFan : see my edits in the question... I am allowing allFrom Matt Simmons -
Found it!
One of the logs had the line:
refused mount request from 192.168.1.108 for /home/me (/home/me): illegal port 64112
I googled and found that since the port is over 1024 I needed to add the "insecure" option to the relevant line in /etc/exports on the server. Once I did that (and ran exportfs -r), the mount -a on the client worked.
From JoelFan
0 comments:
Post a Comment