Operating System - HP-UX
1829236 Members
2629 Online
109987 Solutions
New Discussion

swinstall permission problem

 
SOLVED
Go to solution
David Watts
Advisor

swinstall permission problem

Hi,

I am root, via console, and trying to install software using swinstall but am being blocked with :

* Started install agent on "/" for root@bhxns05, pid=27095,
12/07/00 12:30:43 GMT
* Agent pid=27095 completed. 12/07/00 12:31:47 GMT
* Started install agent on "/" for root@bhxns05, pid=452,
12/07/00 13:28:20 GMT
ERROR: Access denied to root@bhxns05 to start agent on unregistered
depot "/home/dwatts/lsof-4.51-sd-11.00.depot". No (i)nsert
permission on host. 12/07/00 13:28:21 GMT
* Agent pid=452 completed. 12/07/00 13:32:17 GMT

This smacks of ACL denial but I am root!! I should not need to set up any ACLs for root, they are as default.

Any clues.

Cheers

David
10 REPLIES 10
Alex Glennie
Honored Contributor

Re: swinstall permission problem

check swacl permissions for root user !

it'll either be root or host access permissions i suspect

man swacl has good info ...
David Watts
Advisor

Re: swinstall permission problem

the man page and the book both say that root is not governed by the ACL rules.

Anyway, I have check with servers that work and they are exaclty the same host ACL's, which don't specify an ACL for user root.
Pete Ellis
Trusted Contributor

Re: swinstall permission problem

Have you checked your ACLs, swacl -l host
If you don't have cwrit then your default has changed! Check your sw logs to see what and when was last installed.
Reset using; swacl -l host -M usr:root:cwrit
Alex Glennie
Honored Contributor
Solution

Re: swinstall permission problem

Also are you missing the /var/spool/sw directory

Try Stop and started swagentd

use swreg -l depot on the depot.
David Watts
Advisor

Re: swinstall permission problem

Yes, /var/spool/sw was missing, but I have now created one !!! and still the problem persists.

( dragged it from a workign server, but there was basiclly nothing in it).

David
CHRIS_ANORUO
Honored Contributor

Re: swinstall permission problem

Try swinstall -s /directorywheredepotfileisstored
When We Seek To Discover The Best In Others, We Somehow Bring Out The Best In Ourselves.
Steffi Jones_1
Esteemed Contributor

Re: swinstall permission problem

Hello,

try these steps:

mv /var/adm/sw/security /var/adm/sw/security.old
mkdir /var/adm/sw/security
chown root /var/adm/sw/security
chgrp root /var/adm/sw/security
chmod 755 /var/adm/sw/security
/sbin/init.d/swagentd stop
/sbin/init.d/swagentd start

Steffi Jones
David Watts
Advisor

Re: swinstall permission problem

Thanks all. I have seemed to have sorted this out now.

I couldn't get swagentd to stop (using /sbin/inid.swagentd stop), so I killed it, then I couldn't get it to start so I rebooted.

I then tried again, and it worked !!! I have seen this on anther server last week when installing a bdf patch, and I installed the binary manually, I will now have to start think HP-UX is like NT and when I get a problem I will just reboot and see what happens...

Cheers everyone.
Donny Jekels
Respected Contributor

Re: swinstall permission problem

Dave,

I experienced the same problem, followed all the stepps as described, and did not need to reboot. :-)

now now, HP-UX != NT

cheers
"Vision, is the art of seeing the invisible"
JJ_4
Frequent Advisor

Re: swinstall permission problem

Hi,

Running HP-UX 11.11

I had a very similar situation (see error below), and this was resolved (oddly) by
"/sbin/init.d/swagentd stop"
followed with
"/sbin/init.d/swagentd start"
JJ

ERROR: Access denied to root@jaime to start agent on unregistered depot "/opt/a_product/". No (i)nsert permission on host. 07/12/02 16:23:19 BST
* Agent pid=5962 completed. 07/12/02 16:23:20 BST
Not enough Zappa makes you sad.