System Administration
cancel
Showing results for 
Search instead for 
Did you mean: 

swacl / swinstall target problems

Ceesjan van Hattum
Esteemed Contributor

swacl / swinstall target problems

Hi,
Working on hpux11.11, i suprisingly have the following problem:

swacl -l root -M user:root@ontob2:crwit
ERROR: You are not authorized to perform the requested operation on
the "root" ACL at "ontob2:/". Depending on whether you are
attempting to list or modify the ACL, you do not have the
required "test" or "control" permission, respectively. (Use
the "id" command to find out the identity information used by
SD to determine your access permissions.)

All my attempts of swinstall or swacl fail this way and there is no way to get access to it.
Notes:
I'm root
I've checked /etc/resolv.conf and nsswitch.conf
I've restarted swagentd (-r) many times
I've exchanged /var/adm/sw/security/_* with /var/adm/sw/products/ifiles/_*
I've moved the _LOCK_FILE
But all of this would not help.

My goal: to skip the the following error on swinstall:
BEGIN swinstall SESSION
(non-interactive) (jobid=ontob2-0068)

* Session started for user "root@ontob2".

* Beginning Selection
ERROR: "ontob2:/": You do not have the required permissions to
select this target. Check permissions using the "swacl"
command or see your system administrator for assistance. Or,
to manage applications designed and packaged for nonprivileged
mode, see the "run_as_superuser" option in the "sd" man page.
* Target connection failed for "ontob2:/".
ERROR: More information may be found in the daemon logfile on this
target (default location is ontob2:/var/adm/sw/swagentd.log).
* Selection had errors.

Please help.
Ceesjan
9 REPLIES
Sheriff Andy
Trusted Contributor

Re: swacl / swinstall target problems

Can you nslookup your server, IP, short name & FQDN?
What happens when you do the same w/ your DNS servers?

How about swlist -l? Are you able to do a listing?
Dave Hutton
Honored Contributor

Re: swacl / swinstall target problems

Is there anything in ontob2:/var/adm/sw/swagentd.log

The daemon logfile on the target, it says there may be more information in there?
Or is this snippet from that log file?
Sheriff Andy
Trusted Contributor

Re: swacl / swinstall target problems

Excuse me,

That would be swlist w/ no switches.
Ermin Borovac
Honored Contributor

Re: swacl / swinstall target problems

Please try the following

# /sbin/init.d/swagentd stop
# cd /var/adm/sw
# mv security security.orig
# cp -Rp /usr/newconfig/var/adm/sw/security .
# /sbin/init.d/swagentd start

Check if it looks ok with

# swacl -l root
Nguyen Anh Tien
Honored Contributor

Re: swacl / swinstall target problems

I did like following many time it occur on my system
1, check current PID on your system
[server:/] ps -ef|grep swagent
root 1455 1 0 Apr 24 ? 0:47 /usr/sbin/swagentd -r
root 4700 4679 1 14:01:15 pts/2 0:00 grep swagent
2, kill current process:
[server:/]kill -9 1455
3, start swagent againt
[server:/]/usr/sbin/swagentd start
that all
HTH
tienna
HP is simple
Ceesjan van Hattum
Esteemed Contributor

Re: swacl / swinstall target problems

Follow up:
None of the above seems to work.
Maybe this will help:

`swremove` cannot target host as well
and therefore it won't give me a list of
installed software.
`swlist` does give me a list, but i
believe the swlist does not really make
contact with the target-host.

please help!
Sheriff Andy
Trusted Contributor

Re: swacl / swinstall target problems

In your /etc/hosts file do you have a reference to your server?

Also in your nsswitch.conf file, does it reference hosts then dns?

It really seems like you have a problem w/ network resolution on your system.
squirrel_2
Regular Advisor

Re: swacl / swinstall target problems

Any feedback on that problem would be nice, if it is solved or not and if yes, how.
mssud
Occasional Visitor

Re: swacl / swinstall target problems

It is possible that the actual address of the system and the address being returned by the name resolution are different. Fixing that, and a restart of swagentd should fix the problem.