Operating System - HP-UX
1836382 Members
2929 Online
110100 Solutions
New Discussion

Problems with swinstall and swacl - please help !

 
SOLVED
Go to solution
Tim Alsop
Advisor

Problems with swinstall and swacl - please help !

I have been lent a HP server running HP/UX 11i (11.23) on IA-64 hardware. I am having problems installing depot packages on this server - can somebody help ?

This is what happens when I try to install my package :

Installing package : CSTBscs

======= 04/04/05 20:04:16 METDST BEGIN swinstall SESSION
(non-interactive) (jobid=dspp-0041)

* Session started for user "root@dspp".

* Beginning Selection
* Target connection succeeded for "dspp:/".
ERROR:
"dspp:/misc/source/common/packaging/generator/CSTBscs-4.1.1-31789.HPUX.IA-64.depot":
You do not have the required permissions to perform this
operation. 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.
* Source connection failed for
"dspp:/misc/source/common/packaging/generator/CSTBscs-4.1.1-31789.HPUX.IA-64.depot".

WARNING: More information may be found in the daemon logfile on this
target (default location is dspp:/var/adm/sw/swagentd.log).
* Selection had errors.



======= 04/04/05 20:04:17 METDST END swinstall SESSION
(non-interactive) (jobid=dspp-0041)


As you can see the error suggests a permission problem. I have read about swacl and tried to use it, but when I do I also get errors :

# swacl -l depot
#
# swacl Depot Access Control List
#
# For depot: dspp:/var/spool/sw
#
# Date: Mon Apr 4 20:05:14 2005
#

ERROR: You are not authorized to perform the requested operation on
the "depot" ACL at "dspp:/var/spool/sw". 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.)


So, is there some way I can make root so it can install packages ? I would have thought this would be the default anyway, so maybe somebody who used this system before me broke the default acl's ? Any help with this would be appreciated. Many thanks.
Tim
5 REPLIES 5
Uday_S_Ankolekar
Honored Contributor

Re: Problems with swinstall and swacl - please help !

Restart swagent process by

/usr/sbin/swagentd -r

And then run swinstall

-USA..
Good Luck..
Nguyen Anh Tien
Honored Contributor

Re: Problems with swinstall and swacl - please help !

Hi Tim
Do like this (restart software agent):
[server:/] ps -ef|grep swage
root 1431 1 0 Mar 16 ? 0:38 /usr/sbin/swagentd -r
root 13628 13352 2 08:38:50 pts/0 0:00 grep swage
[server:/] kill -9 1431
[server:/] /usr/sbin/swagentd -r

I'm sure that it will be OK
tienna
HP is simple
Steven E. Protter
Exalted Contributor

Re: Problems with swinstall and swacl - please help !

root can install packages if swagentd is running.

It probably needs to be a pure root login or an su - root login as another user.

By default, swinstall should let root do installations, unless someone has changed the user id or shell of root in /etc/passwd.

Might want to check that.

I'm not sure what would happen if you are another user doing sudo.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Tim Alsop
Advisor

Re: Problems with swinstall and swacl - please help !

Thank you to everybody who replied. My swagent was running, so I killed it and started it again. I then ran swreg (I found a mention of this in another post) and I can now install packages again from root user ... hurray !

Nguyen Anh Tien
Honored Contributor
Solution

Re: Problems with swinstall and swacl - please help !

pls do not foget to assign point to solution.
tienna
HP is simple