Hi,
I am trying to access a NFS shared directory on Solaris 10 Server from a client which is RHEL 4 Server.
On the NFS Server, in /etc/dfs/, I added following line to dfstab file.
share -F nfs -o rw /var/share
& then ran the following
svcadm -v enable -r network/nfs/server
On the client machine, while running the mount command, I am getting the following error.
mount -vt nfs 97.146.133.114:/var/share /nfs_test
mount: trying 97.146.133.114 prog 100003 vers 3 prot tcp port 2049
mount: trying 97.146.133.114 prog 100005 vers 3 prot udp port 32777
mount: 97.146.133.114:/var/share failed, reason given by server: Permission denied
97.146.133.114 is the NFS Server.
Please help me to resolve this issue.
Thanks,
Sunil
What happens when you set NFS_CLIENT_VERSMAX=3 in /etc/default/nfs and restart your NFS server?
1 Like
I've experienced this problem in the past and remember having to fight it.
I recommend that you ease all security until you make is work and then tighten up afterwards. I can confirm that it can be made to work with RHEL.
Start by opening up root access to the Solaris share:
share -F nfs -o rw,root=<RHEL nodename> /var/share
Put the RHEL nodename and its ip address in /etc/hosts
Set the access rights on the Solaris share to 777.
For good measure also set 777 on its parent directory
chmod 777 /var/share
chmod 777 /var
On RHEL try:-
mount <Solaris ip>:/var/share <mount point>
You may also need to try specifying nfs version 2,3 or 4 on the mount command. Try all three versions to test.
Post the results of that.
I think you'll agree that it's easier to troubleshoot from a working position than a non-working position. You can then re-tighten security until you break it.
Hope that helps.
1 Like
Thanks. Your solution worked. The issue is resolved.
---------- Post updated at 11:31 AM ---------- Previous update was at 11:27 AM ----------
hicksd8:
I've experienced this problem in the past and remember having to fight it.
I recommend that you ease all security until you make is work and then tighten up afterwards. I can confirm that it can be made to work with RHEL.
Start by opening up root access to the Solaris share:
share -F nfs -o rw,root=<RHEL nodename> /var/share
Put the RHEL nodename and its ip address in /etc/hosts
Set the access rights on the Solaris share to 777.
For good measure also set 777 on its parent directory
chmod 777 /var/share
chmod 777 /var
On RHEL try:-
mount <Solaris ip>:/var/share <mount point>
You may also need to try specifying nfs version 2,3 or 4 on the mount command. Try all three versions to test.
Post the results of that.
I think you'll agree that it's easier to troubleshoot from a working position than a non-working position. You can then re-tighten security until you break it.
Hope that helps.
The issue is resolved by adding NFS_CLIENT_VERSMAX=3 in /etc/default/nfs and restarting the NFS server.
Though I did not try your solution, I appreciate your effort in putting a detailed explaination.
Thanks,
Sunil