Operating System - HP-UX
1833325 Members
3068 Online
110051 Solutions
New Discussion

nfs permission denied on remote host not in NIS domain.

 
SOLVED
Go to solution
jerry1
Super Advisor

nfs permission denied on remote host not in NIS domain.

I am trying to mount a directory via the
default /net/ path and get
a permission denied.

If I open the export to everyone then you can
cd to /net/host1/dir1.

If I add the hostname to the exports or even
in the netgroup as any combination FQHN, IP,
HOSTNAME. It does not let you cd to dir1.

/net/host1/dir1

Does anyone know how to fix this.

The client is a SUN the server is HP.
The SUN's here can cd to /net/host1/dir1 fine.

The only difference is the remote host is
not bound to our NIS domain. It is bound to
another NIS domain. It should still work
though. /etc/resolv.conf has search for DNS
domain of client so FQHN should not be needed.

I am looking for options to turn on for logging
rpc, nfs, etc.... requests.


6 REPLIES 6
jerry1
Super Advisor

Re: nfs permission denied on remote host not in NIS domain.

I get this error message in the mountd.log
on the nfs server when the client tries
to cd into the directory dir1 from above.

mountd: mount request from (anon) denied: Permission denied
Ermin Borovac
Honored Contributor
Solution

Re: nfs permission denied on remote host not in NIS domain.

You can turn on rpc.mountd debugging on the HP-UX box by sending it SIGUSR2

# kill -SIGUSR2

Now attempt the mount and check /var/adm/mountd.log. It will show you what source IP/hostname mount request is coming from. Make sure this IP/host is in your access list.

To turn off debugging of rpc.mountd simply send it SIGUSR2 again.
Martin Brachtl
Advisor

Re: nfs permission denied on remote host not in NIS domain.

Maybe You should check the name resolution from both sides. Try to check the consistency of NIS and DNS records too.
jerry1
Super Advisor

Re: nfs permission denied on remote host not in NIS domain.

Okay, I have debug turned on for rpc.mountd.
This is what I get back on the server for
the client trying to cd to dir1.

rpc.mountd: getclientsnames: cannot find name for host [166.18.31.250.2.96]

Is this IPv6 ??

I can lookup the hostname but not the IP
in nslookup. Seems there is no reverse
record.

Rick Garland
Honored Contributor

Re: nfs permission denied on remote host not in NIS domain.

If no reverse lookup, how is the PTR record in DNS configured for this host? Is it FQDN or short?

Maybe make it both
jerry1
Super Advisor

Re: nfs permission denied on remote host not in NIS domain.

The quick fix was to put it in the
local /etc/host on the nfs server(s).
They are fixing the reverse DNS.

Thanks all.