Hi folks, I'm using Fedora 13 as a nfs-server and a mini version of Fedora in a virtual machine as nfs-client, but I've got some permission problems. I've edited the files /etc/exports, /etc/hosts.allow and /etc/hosts.deny and I keep getting errors related to permission (like "mount.nfs: access denied by server while mounting 192.168.122.1:/home/max/Documents/Src/libs"). It is unclear to me why those errors are happening, 'cause I disable the firewall (iptables, etc.) every time before running the nfs service and the target directory permission is 0777, the selinux is disabled as well.
The configuration files are below. The server's ip is 192.168.122.1 and the client's one is 192.168.122.140. The command that is used to mount on client is "mount -t nfs -o nfsvers=4 192.168.122.1:/home/max/Documents/Src/libs /root/libs/".
exports file: /home/krosh/Documents/Src/libs 192.168.122.0/24(ro,sync,no_subtree_check,no_root_squash)
hosts.allow lockd: 192.168.122.140 portmap: 192.168.122.140 rquotad: 192.168.122.140 mountd: 192.168.122.140 statd: 192.168.122.140
hosts.deny: portmap: ALL
Is there another file that I should alter?
Thanks, Ivan
On Sat, Mar 5, 2011 at 9:02 PM, Krosh Ivanov krosh.ivan@gmail.com wrote:
The command that is used to mount on client is "mount -t nfs -o nfsvers=4 192.168.122.1:/home/max/Documents/Src/libs /root/libs/".
Replace "-t nfs -o nfsvers=4" by "-t nfs4".