Operating System - HP-UX
1835564 Members
10691 Online
110078 Solutions
New Discussion

Re: Permission Denied with Automount

 
Stefano_65
Regular Advisor

Permission Denied with Automount

Hi everybody
I've a urgent problem to solve..

automount congigured in that way:
file /etc/rc.config.d/nfsconf
--
AUTO_MASTER="/etc/auto_master"
AUTOFS=1
AUTOMOUNT_OPTIONS="-f $AUTO_MASTER"
--

file /etc/auto_master
--
/net -hosts -nosuid,soft,nobrowse
/- /etc/auto.direct
--

file /etc/auto.direct
--
/mountpoint servername:/directory
--

I try to mount (on the same server) with the command:

..but unsuccessfully:

Permission denied



any suggest?
thanx everybody!
s.
7 REPLIES 7
Deoncia Grayson_1
Honored Contributor

Re: Permission Denied with Automount

I have a couple of questions

on the server you are trying to mount the filesystem, you're still receiving permission denied error? Are you doing this as root? What are the permissions on the file system?
If no one ever took risks, Michelangelo would have painted the Sistine floor. -Neil Simon
Stefano_65
Regular Advisor

Re: Permission Denied with Automount

I'm trying to mount the filesystem on the same server..



servername is a SG package running on the server.

permissions are root root, and I'm root.

tnx.





on the server you are trying to mount the filesystem, you're still receiving permission denied error? Are you doing this as root? What are the permissions on the file system?
Peter Nikitka
Honored Contributor

Re: Permission Denied with Automount

Hi,

you configured automounter - so let it do the work: there is no need (and it's wrong) to perform mount commands by yourself.

Do a 'automount -v' (if you use an uptodate version of HP-UX and automouter) to activate probably changed automounter-settings.

Then just do a 'ls /mountpoint' or other commands which access files under that directory to get it mounted.

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"
Shannon Petry
Honored Contributor

Re: Permission Denied with Automount

You stated that you manually tried to mount the filesystem, and it failed?

mkdir /my_tmp
mount server:/remote/dir /my_tmp

If this fails, then you have a NFS server issue.

Is NFS running on the server?
Is the export created?
What are the permissions on the export?
(on the fileserver type "exportfs -a" and see how it is exporting)


Regards,
Shannon
Microsoft. When do you want a virus today?
Shannon Petry
Honored Contributor

Re: Permission Denied with Automount

Sorry, gave bad info in haste.


exportfs -a

# exports the file systems in /etc/exports

exportfs

# will display what is exported and options


Regards,
Shannon
Microsoft. When do you want a virus today?
Sanjay_6
Honored Contributor

Re: Permission Denied with Automount

Hi Stephano,

You first need to NFS export the filesystem that you want to mount. Also, the process that you are using is to try automounter, but then you are trying to hard mount the filesystem using the mount command.

Take a look at the doc below on how to setup nfs on hp-ux server,

http://docs.hp.com/cgi-bin/fsearch/framedisplay?top=/hpux/onlinedocs/B1031-90054/B1031-90054_top.html&con=/hpux/onlinedocs/B1031-90054/00/00/6-con.html&toc=/hpux/onlinedocs/B1031-90054/00/00/6-toc.html&searchterms=nfs&queryid=20041203-110020

Hope this helps.

Regds
Stefano_65
Regular Advisor

Re: Permission Denied with Automount

thanx everybody, now I'm tryng to know wich is exactl my problem...
See You lather...