Operating System - HP-UX
1829879 Members
2503 Online
109993 Solutions
New Discussion

NFS Mount Related Problem

 
Indrajit Bhagat
Regular Advisor

NFS Mount Related Problem

Dear sir , I
I am getting the following error while mounting the remote file system on client machine.
# mount lngappdr:/ /tmp/abcd
Permission denied
the secenario is there is one server named lngappdr which i have made NFS server and lngprddr which i have made NFS client. i am getting the following error while mounting the /tmp directory in NIS client.
5 REPLIES 5
Patrick Wallek
Honored Contributor

Re: NFS Mount Related Problem

What are the contents of your /etc/exports file on lngappdr? Does it help if you do a 'exportfs -va' on lngappdr?
Indrajit Bhagat
Regular Advisor

Re: NFS Mount Related Problem

this is the following output that i get from lngappdr machine:
# vi /etc/exports
"/etc/exports" 5 lines, 87 characters
/sharing
/var/opt/ignite/clients -anon=2
/tmp -root=lngprddr
/home -access=lngprddr
/etc/passwd -root=lngprddr

Rasheed Tamton
Honored Contributor

Re: NFS Mount Related Problem

Dear Indrajit,

1. You can only mount the file systems as super user.

2.
> # mount lngappdr:/ /tmp/abcd

What actually you are trying here is to mount from the root dir on lngappdr to the /tmp/abcd on your client box.

Can you explain what is your actual objective. Which dir you want to mount from NFS server to which dir on client. So it will be more easy.



Rasheed Tamton
Honored Contributor

Re: NFS Mount Related Problem

Can you also do these and let us know.

On the client:

id -a
pwd
showmount -e lngappdr (nfs server name)
grep NFS_CLIENT /etc/rc.config.d/nfsconf
ps -ef|grep -E 'rpc|biod'
and
your mount command

Peter Nikitka
Honored Contributor

Re: NFS Mount Related Problem

Hi,

looking at the list of exports of the server
/sharing
/var/opt/ignite/clients -anon=2
/tmp -root=lngprddr
/home -access=lngprddr
/etc/passwd -root=lngprddr

you see, that '/' is NOT exported - so it's ok you get a 'permission denied'.
Try
mount lngappdr:/home /tmp/abcd

This should succeed.

mfG Peter
The Universe is a pretty big place, it's bigger than anything anyone has ever dreamed of before. So if it's just us, seems like an awful waste of space, right? Jodie Foster in "Contact"