Operating System - HP-UX
1833562 Members
3232 Online
110061 Solutions
New Discussion

Re: nfs mount of a directory fails with Permission denied

 
SOLVED
Go to solution
Zul Kheraj
Occasional Contributor

nfs mount of a directory fails with Permission denied

Hi

I am trying to nfs mount a directory from a remote server using SAM and I get Permission denied error.

Do I need to export the directory from the remote server ? I cannot see the option anywhere ?

Systems: HP L1000 class with HPUX 11.00

I even tried using the mount command as follows:

# mount richhp3:/usr1 /usr1
Permission denied
#

Cheers

Zul

4 REPLIES 4
Craig Rants
Honored Contributor
Solution

Re: nfs mount of a directory fails with Permission denied

This link may help.

NFS Troubleshooting

http://docs.hp.com/hpux/onlinedocs/B1031-90048/00/00/42-con.html

GL,
C
"In theory, there is no difference between theory and practice. But, in practice, there is. " Jan L.A. van de Snepscheut
Vikki Wikeley
Advisor

Re: nfs mount of a directory fails with Permission denied

Hi Zul,

You need to export the directory from the remote server.
Edit /etc/exports adding in the directory you wish to export and the options it is to exported with, then run exportfs to export them.

Hope this helps,

Vikki
I was right about the whales & dolphins
Ted Ellis_2
Honored Contributor

Re: nfs mount of a directory fails with Permission denied

on the server that owns the file system you want to share:

1. do you have the /etc/exports file configured?
2. have you run exportfs -a to export the file systems marked in /etc/exports?
3. run showmount -e on this server to see the exported file systems.

Man pages for exports (this will show you how to set up permissions) and exportfs can give you the details on these.

Sounds like the /etc/exports file permissions should be checked first.... and you will have to ensure that the file system is exported in order to mount it from your other machine.

And I would not use SAM for the mount....
man page of fstab shows how to edit the /etc/fstab for an nfs mount:

server:/mnt /mnt nfs rw,hard 0 0 #mount from server

Ted

try
Brian K. Arnholt
Frequent Advisor

Re: nfs mount of a directory fails with Permission denied

To add to what Vikki and Ted wrote, make sure you specify the correct permissions on the file system in the /etc/exportfs file, this has burned me in the past.

The default permission on the exported file system is read-write, however, you can specify other options like read-only depending on your needs. The man pages for 'exportfs' give details plus some nice examples.

Best of luck,

Brian
Some see things as they are and ask why, I dream of things that never were and ask why not?