Operating System - HP-UX
1846910 Members
5194 Online
110256 Solutions
New Discussion

nfs mount - permission denied

 
Joe Profaizer
Super Advisor

nfs mount - permission denied

Trying to nfs mount a shared filesystem. The host is 10.10.1.72, the remote host that is attempting to mount it is 10.119.1.91. I can nfs mount between systems with the 10.119.x.x and systems between 10.10.x.x, but not between systems with 10.119.x.x and 10.10.x.x. Should this be a problem? If so, where should I start looking.

I'm sure that the /etc/exports and /etc/rc.config.d/nfsconf are configured correctly.

Another interesting point is that the 10.119 servers are in Montreal and the 10.10 servers are in St. Louis, but we have a T1 or T3 line between the sites. I'm also having the same troubles with rcp'ing between 10.119 and 10.10.

Thanks,

...Joe
8 REPLIES 8
Helen French
Honored Contributor

Re: nfs mount - permission denied

Hi,

What is the subnet mask ? Are you using a router ? Are you able to ping the other host ? what will be the output of nslookup ?

HTH,
Shiju
Life is a promise, fulfill it!
pap
Respected Contributor

Re: nfs mount - permission denied

Do you use NIS by any chance?

If you use NIS then it will not support WAN connectivity.

-pap
"Winners don't do different things , they do things differently"
Joe Profaizer
Super Advisor

Re: nfs mount - permission denied

subnets are both 255.255.0.0
Yes there is a router involved.
Yes, I can ping the other hosts.

nslookup output:
# nslookup dr-rga9
Using /etc/hosts on: rga6

looking up FILES
Trying DNS
Name: dr-rga9.rgare.ca
Address: 10.119.1.91
Aliases: dr-rga9.rgare.com

# nslookup rga6
Using /etc/hosts on: dr-rga9

looking up FILES
Name: rga6.rgare.com
Address: 10.10.1.72
Aliases: rga6



Thanks,

..Joe
Joe Profaizer
Super Advisor

Re: nfs mount - permission denied

Not using NIS.

Thanks.
MANOJ SRIVASTAVA
Honored Contributor

Re: nfs mount - permission denied

Hi Joe

The way to go about this is like this :

Can you do a rlogin to the otehr system as a root w/o the other system asking for passwd ?.


If no then you set that right by editing the right files or adding the correspoinding addresss in the /.rhosts like

10.2.10.30 root

also insure that you can ping to the other server using the IP address.


Manoj Srivastava
Sachin Patel
Honored Contributor

Re: nfs mount - permission denied

Hi Joe,
do you have access argument on /etc/exports file?

For example
houhost2# cat /etc/exports
/data -access=houhost1

then only houhosts1 can access this directory.

Check this to eliminate one more posibility.

Sachin
Is photography a hobby or another way to spend $
Helen French
Honored Contributor

Re: nfs mount - permission denied

Hi,

Some points:

1) check /etc/exports file for any additional paramters ( eg: access). Verify that it is mountable for all hosts.
2) Check the network setting and findout your hosts is not denied for any network operations.
3) Check that the nfs server and client daemons are running and the portmapper is running on both sides.

HTH,
Shiju
Life is a promise, fulfill it!
pap
Respected Contributor

Re: nfs mount - permission denied

Hi Joe,

Check following

1. /etc/exports and just put the exported directory without any access permissions.

2. Try to login to remote host as mentioned before. If you cna do rlogin, then your NFS should work fine.
Put the entry in /.rhosts file for root in remote machine.

Now your NFs should work....if above things are working.

-pap
"Winners don't do different things , they do things differently"