Getting "access denied" error when mounting

  • Follow


I have a Solaris 10 x86 server.  Inside its /etc/exportfs file, it
contains:

-     /export/home/data     rw     ""

When I go to a Solaris 10 x86 client system, I can mount that /export/
home/data onto this client without any problem.

But when I go to an HP UX system, and try to mount that /export/home/
data directory from the Solaris 10 server, I get the "access denied"
error message.  On the HP UX system, inside /etc/.rhosts and /etc/
hosts.equiv, there is a + inside them.

Also, I created similar user names and passwords on both the Solaris
10 and the HP UX systems.

Does anyone know what I need to do in order to mount a directory from
Solaris 10 onto an HP UX system?  Thanks in advance.
0
Reply Michelle 1/21/2008 11:44:34 PM

I have encountered a similar problem, except backwards. We have a NetApps 
NAS, and when I try to mount an export from there onto a Solaris 10 box (I 
did not have this problem with Solaris 9 or earlier) it fails with that 
error message.

In my case it has to do with the NFS version. The NAS uses NFS V3 and 
Solaris 10 by default seems to use NFS V4, and if there is an 
"autonegotiate" that takes place between the two machines it does not 
succeed. I fixed the issue by adding the "vers=3" (I believe that is the 
syntax) option to the automount command on the Solaris box. You may need to 
add a similar option to the export command on your Solaris machine. Or dink 
around on the HPUX machine. I know my HPUX machines have no issue mounting 
filesystems from the NAS.

Good luck.


"Michelle" <serendipity1276@yahoo.com> wrote in message 
news:68f5740b-9783-4e6c-a1bc-87b30f862484@e23g2000prf.googlegroups.com...
>I have a Solaris 10 x86 server.  Inside its /etc/exportfs file, it
> contains:
>
> -     /export/home/data     rw     ""
>
> When I go to a Solaris 10 x86 client system, I can mount that /export/
> home/data onto this client without any problem.
>
> But when I go to an HP UX system, and try to mount that /export/home/
> data directory from the Solaris 10 server, I get the "access denied"
> error message.  On the HP UX system, inside /etc/.rhosts and /etc/
> hosts.equiv, there is a + inside them.
>
> Also, I created similar user names and passwords on both the Solaris
> 10 and the HP UX systems.
>
> Does anyone know what I need to do in order to mount a directory from
> Solaris 10 onto an HP UX system?  Thanks in advance. 


0
Reply Douglas 1/22/2008 12:51:11 AM


In article <68f5740b-9783-4e6c-a1bc-87b30f862484@e23g2000prf.googlegroups.com>,
	Michelle <serendipity1276@yahoo.com> writes:
> I have a Solaris 10 x86 server.  Inside its /etc/exportfs file, it

Solaris 10 doesn't use any such file.
Did you mean /etc/dfs/dfstab in which case your syntax is wrong?

> contains:
> 
> -     /export/home/data     rw     ""

What does "showmount -e localhost" give on the Solaris box?

-- 
Andrew Gabriel
[email address is not usable -- followup in the newsgroup]
0
Reply andrew 1/22/2008 1:00:50 AM

> Did you mean /etc/dfs/dfstab in which case your syntax is wrong?
>
> > contains:
>
> > - =A0 =A0 /export/home/data =A0 =A0 rw =A0 =A0 ""
>

Yes, my dfstab file does contain the above.


> What does "showmount -e localhost" give on the Solaris box?
>

no exported filesystem for localhost


This is strange!  When I go to a client Solaris 10 system, I can
mount /export/home/data from the Solaris server onto this Solaris
client though.  If there was no filesystem exported on the Solaris 10
server, how could I have done this?!

0
Reply Michelle 1/22/2008 1:31:03 AM

Michelle <serendipity1276@yahoo.com> writes:
>
>This is strange!  When I go to a client Solaris 10 system, I can
>mount /export/home/data from the Solaris server onto this Solaris
>client though.  If there was no filesystem exported on the Solaris 10
>server, how could I have done this?!
>

At a wild guess, the filesystem you're mounting comes from a server
different than the one you think it comes from.

  -Greg
-- 
Do NOT reply via e-mail.
Reply in the newsgroup.
0
Reply gerg 1/22/2008 1:33:48 AM

I'm really puzzled.

I have a Solaris 9 server with a similar setup.  Yet, I can mount
directories from this Solaris 9 system onto this HP UX system.  But
when I try mounting from Solaris 10 systems, I get the "access denied"
error message on the HP UX system.
0
Reply Michelle 1/22/2008 1:38:27 AM

Is the /etc/hosts.equiv file on the Solaris 10 system the location
that gives permission for that
HP UX system to mount?

I just revised the /etc/hosts.equiv file on the Solaris 10 to the
following:


+
HPUX_system_name


I rebooted the Solaris 10 system.  Same problem!  Cannot mount that
directory on the Solaris 10 onto the HP UX system.  It says "access
denied".


remsh does work from Solaris 10 to HP UX, and from HP UX to Solaris
10, however.

0
Reply Michelle 1/22/2008 1:56:18 AM

Michelle <serendipity1276@yahoo.com> writes:

>Is the /etc/hosts.equiv file on the Solaris 10 system the location
>that gives permission for that
>HP UX system to mount?

No!

>I just revised the /etc/hosts.equiv file on the Solaris 10 to the
>following:

>+
>HPUX_system_name

The "+" allows everyon to rsh into your box; I think you want it
removed (or disable rlogin/rsh if you haven't already)


>I rebooted the Solaris 10 system.  Same problem!  Cannot mount that
>directory on the Solaris 10 onto the HP UX system.  It says "access
>denied".

/etc/dfs/dfstab contains the shared filesystems; check the access
control lists.

Casper
-- 
Expressed in this posting are my opinions.  They are in no way related
to opinions held by my employer, Sun Microsystems.
Statements on Sun products included here are not gospel and may
be fiction rather than truth.
0
Reply Casper 1/22/2008 10:07:08 AM

Run "dfshares" command  on the solaris box in order to ascertain what , if 
any filesystems are shared
George 


0
Reply george2 1/22/2008 6:55:04 PM

server9 = name of my Solaris 9 system
server10 = name of my Solaris 10 system
server_hpux = name of my HP UX system


inside /etc/dfs/dfstab on both server 9 and server10, I have:

share -F nfs -o rw /export/home/data


when I go to server9 to do "dfshares", I get:

RESOURCE     SERVER     ACCESS     TRANSPORT

server9:/export/home/data     server9     -     -

but when I go to server10 to do "dfshares", I get nothing.


So from the HP UX system, I can mount /export/home/data from server 9
onto the HP UX box,
but I cannot mount from the server 10 system.  I get the "access
denied" error on the HP UX system.

What file on the server10 system do I need to edit to allow permission
for the HP UX system to mount
/export/home/data from server10 onto the server_hpux system?

Is this likely where the problem is coming from?
0
Reply Michelle 1/22/2008 9:08:04 PM

Michelle wrote:
> server9 = name of my Solaris 9 system
> server10 = name of my Solaris 10 system
> server_hpux = name of my HP UX system
> 
> 
> inside /etc/dfs/dfstab on both server 9 and server10, I have:
> 
> share -F nfs -o rw /export/home/data
> 
> 
> when I go to server9 to do "dfshares", I get:
> 
> RESOURCE     SERVER     ACCESS     TRANSPORT
> 
> server9:/export/home/data     server9     -     -
> 
> but when I go to server10 to do "dfshares", I get nothing.
> 

dfshares on Solaris does not tell about access rights.
Better use this command:
share

> 
> So from the HP UX system, I can mount /export/home/data from server 9
> onto the HP UX box,
> but I cannot mount from the server 10 system.  I get the "access
> denied" error on the HP UX system.
> 
> What file on the server10 system do I need to edit to allow permission
> for the HP UX system to mount
> /export/home/data from server10 onto the server_hpux system?

/etc/dfs/dfstab

(Compare it with the one on the Solaris 9 system.)
After changing the file, run
shareall


> 
> Is this likely where the problem is coming from?

Yes.

-- 
Michael Tosch @ hp : com
0
Reply Michael 1/22/2008 9:43:05 PM

I checked.  both dfstab files on server9 and server10 are the same

I went on the server10, and did a "shareall"

on both server9 and server10, I did a "share" command, and the
outputted values were similar

however, the problem is still the same:

from the HP UX system, I can mount /export/home/data from server9 onto
the HP UX system, but not from server10

the error message from the HP UX system is "access denied"

I've been at this for a week now, with no success.  There's got to be
something I'm missing.

Any other suggestions how to fix this problem?  Thanks.
0
Reply Michelle 1/23/2008 12:01:48 AM

Michael Tosch <eedmit@no.eed.spam.ericsson.pls.se> wrote:
> /etc/dfs/dfstab
> 
> (Compare it with the one on the Solaris 9 system.)
> After changing the file, run
> shareall

Might want to verify the server is running as well:

# svcs nfs/server

if not,

# svcadm enable nfs/server

-- 
Darren Dunham                                           ddunham@taos.com
Senior Technical Consultant         TAOS            http://www.taos.com/
Got some Dr Pepper?                           San Francisco, CA bay area
         < This line left intentionally blank to confuse you. >
0
Reply ddunham 1/23/2008 12:10:11 AM

> Might want to verify the server is running as well:
>
> # svcs nfs/server
>
> if not,
>
> # svcadm enable nfs/server



I already ran the svcadm enable nfs/server command on the server10
system.

BTW, if I went on another Solaris 10 system (named client10), I can
mount the /export/home/data directory from server10 onto the
"client10" system.

It just doesn't work if I try mounting it from the HP UX system.
0
Reply Michelle 1/23/2008 6:45:25 AM

Michelle <serendipity1276@yahoo.com> writes:

>server9 = name of my Solaris 9 system
>server10 = name of my Solaris 10 system
>server_hpux = name of my HP UX system


>inside /etc/dfs/dfstab on both server 9 and server10, I have:

>share -F nfs -o rw /export/home/data


>when I go to server9 to do "dfshares", I get:

>RESOURCE     SERVER     ACCESS     TRANSPORT

>server9:/export/home/data     server9     -     -

>but when I go to server10 to do "dfshares", I get nothing.


Have you enabled the nfs server?

(svcadm enable -r nfs/server)

Casper
-- 
Expressed in this posting are my opinions.  They are in no way related
to opinions held by my employer, Sun Microsystems.
Statements on Sun products included here are not gospel and may
be fiction rather than truth.
0
Reply Casper 1/23/2008 8:43:11 AM

Michelle <serendipity1276@yahoo.com> writes:

> server9 = name of my Solaris 9 system
> server10 = name of my Solaris 10 system
> server_hpux = name of my HP UX system


> inside /etc/dfs/dfstab on both server 9 and server10, I have:

> share -F nfs -o rw /export/home/data


> when I go to server9 to do "dfshares", I get:

where do get the name server9 from, is it in /etc/hosts?
if You get the name by dns, You mit enter the full qualified hostname
in /etc/dfs/dfstab   (server9.your.domain)
-- 
Fu�g�nger sind wie das ideale Gas: Sie nehmen jeden zu Verg�gung gestellten
Verkehrsraum vollst�ndig ein, notfalls durch intensives Torkeln.
0
Reply hs02 1/23/2008 2:11:06 PM

In article <8163d23a-2d3b-4fe2-a752-2327fd67f33e@d21g2000prf.googlegroups.com>,
	Michelle <serendipity1276@yahoo.com> writes:
> server9 = name of my Solaris 9 system
> server10 = name of my Solaris 10 system
> server_hpux = name of my HP UX system
> 
> 
> inside /etc/dfs/dfstab on both server 9 and server10, I have:
> 
> share -F nfs -o rw /export/home/data
> 
> 
> when I go to server9 to do "dfshares", I get:
> 
> RESOURCE     SERVER     ACCESS     TRANSPORT
> 
> server9:/export/home/data     server9     -     -
> 
> but when I go to server10 to do "dfshares", I get nothing.
> 
> 
> So from the HP UX system, I can mount /export/home/data from server 9
> onto the HP UX box,
> but I cannot mount from the server 10 system.  I get the "access
> denied" error on the HP UX system.
> 
> What file on the server10 system do I need to edit to allow permission
> for the HP UX system to mount
> /export/home/data from server10 onto the server_hpux system?
> 
> Is this likely where the problem is coming from?

I wonder if HP is ending up using NFSv4 against Solaris 10
and NFSv3 against Solaris 9, and having problems with NFSv4?

You could disable NFSv4 by adding NFS_SERVER_VERSMAX=3 to
/etc/default/nfs (and restarting NFS server).

If that doesn't fix anything, take it out again.

-- 
Andrew Gabriel
[email address is not usable -- followup in the newsgroup]
0
Reply andrew 1/23/2008 7:14:00 PM

16 Replies
759 Views

(page loaded in 0.158 seconds)

Similiar Articles:


















7/24/2012 8:25:14 AM


Reply: