Operating System - HP-UX
1823718 Members
3903 Online
109664 Solutions
New Discussion юеВ

Mount with NFS - Permission denied

 
SOLVED
Go to solution
RUI AGOSTINHO
New Member

Mount with NFS - Permission denied

I have a problem mounting remote directory with NFS on HP-UX B.11.23 OS - Permission denied, only if I specify -access=system1 on the NFS Server. If I export with permission for all servers, it works.
I have no problem mounting remote directories on HP-UX B.11.00 OS.

Thanks
Sandra
8 REPLIES 8
Mark Grant
Honored Contributor

Re: Mount with NFS - Permission denied

I think this will be a name resolution issue then. I would do an nslookup of "system1" on the client and server and make sure they are the same. Failing that, try the IP address in your "-access" list.
Never preceed any demonstration with anything more predictive than "watch this"
KapilRaj
Honored Contributor

Re: Mount with NFS - Permission denied

when u say access=node1 , node1 should be the real hostname which is resolved by the nfs server. Also NFS server should be able to reverselookup this host name. Best way is to add it in /etc/hosts if u do not have a good DNS.

If you have multiple network adapaters on your client , find out though which it connects to nfs server and whether it is the same mentioned in exports. make an ftp sesion to nfs server and find out using netstat which interface is being used

Kaps
Nothing is impossible
RUI AGOSTINHO
New Member

Re: Mount with NFS - Permission denied

I tried with ip address, and I defined the hostname in /etc/hosts. The problem persists.

Thanks
Sandra
Bharat Katkar
Honored Contributor

Re: Mount with NFS - Permission denied

Hi sandra,
Try doing
# nslookup HPSystemName
from NFS server. It looks like name resolution issue to me as already suggested.
Regards,
You need to know a lot to actually know how little you know
Muthukumar_5
Honored Contributor
Solution

Re: Mount with NFS - Permission denied

Hai,

What is your hostname resolvation method in /etc/nsswitch.conf files. Check with nslookup to get the lookup process.

For access option,we have to set with the FQDN for old releases. .domain.name
It will only take it. New versions only allow to give the access.

Make an alias name in the /etc/hosts as like


Check now,
exportfs -iv -o access=system1


It will work now. check nfs status with nfsstat command.

Regards,
Muthukumar.
Easy to suggest when don't know about the problem!
Jan Sladky
Trusted Contributor

Re: Mount with NFS - Permission denied

Hi Sandra,
1. are you mounting from system1 like root ?

If yes, this is probably the problem, try add something like this on nfs server on same line:

-root=system #(allow root from client)
or

anon=-2 #(uknown users are mapped to user nobody )

I hope this is right syntax , I haven't used it longer time )

2.are all needed services running on a NFS server ?:
rcpbind (portmap),
nfsd,
rpc.mountd

you can check it from sever by:
rpcinfo -p 127.0.0.1

or from client by :
rpcinfo

Hope this will helps you

br Jan
GSM, Intelligent Networks, UNIX
Geoff Wild
Honored Contributor

Re: Mount with NFS - Permission denied

In /etc/exports, should have:

/mount root=system1,-access=system1

Rgds...Geoff
Proverbs 3:5,6 Trust in the Lord with all your heart and lean not on your own understanding; in all your ways acknowledge him, and he will make all your paths straight.
RUI AGOSTINHO
New Member

Re: Mount with NFS - Permission denied

Hi,

I modified the /etc/hosts file like
ip, host, host.domain
and restarted the NFS services on the Server and Client.

Thank you all.
Sandra