Operating System - HP-UX
1834914 Members
2786 Online
110071 Solutions
New Discussion

Re: Problem with swinstall

 
Anan Ananthasri
New Member

Problem with swinstall

I have some software depot to try to install on my server hp-ux 11.0. I use swlist -s /tmp/mysoftware.depot it pass and then the command swinstall -s /tmp/mysoftware.depot it show the message

---------------------------
"host1:/opt/tmp/mysoftware.depot": You do not have the required
permissions to perform this SD operation. Please check to see that you
have the required permissions using the "swacl" command or see
your system administrator for assistance.
-----------------------------

and I try to run

#swacl -l depot

it show the message

----------------------------
ERROR: You are not authorized to perform the requested operation on
the "depot" ACL at "host1:/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.)
---------------------------
How can I fix the problem?

I login as root account.

Thank you
Anan
7 REPLIES 7
Anand Chauhan
Occasional Contributor

Re: Problem with swinstall

I had the same problem last week when I was trying to install mysql depot. The problem might be solved if you change the hostname permanently. If you changed the hostname recently, after or before trying to install the depot, you get permissiond denied message. hostname command changes the hostname only for the time machine is on, upon reboot the hostname is set to the old one. So, do a man on hostname and try to change hostname permanently.

-Andy Chauhan


Andy
Anan Ananthasri
New Member

Re: Problem with swinstall

Thank you Anand Chauhan.
But I never make change the host name, and it can work on last week. but now it not.

Thank you
Anan
Michael Tully
Honored Contributor

Re: Problem with swinstall

Installing software from the command line is a little picky.

Try it this way:
swinstall -s /tmp/mysoftware.depot \*

If you still have problems with 'swacl' messages have a look at this posting.
http://forums.itrc.hp.com/cm/QuestionAnswer/1,,0x500f237a4bc6d611abdb0090277a778c,00.html
Anyone for a Mutiny ?
Scott Van Kalken
Esteemed Contributor

Re: Problem with swinstall

also look at the file /var/adm/sw/security/_ACL

this is a flat file listing of sw permissions.
Tracy_5
Advisor

Re: Problem with swinstall

If you do "swacl -l depot", you have to then list the name of the depot. For instance,

swlist -d @ /tmp/mysoftware.depot

Look at the permission sof your host:
swacl -l host

Check the depots on your system:
swlist -l depot

Look at the list of products in your depot:
swlist -l product -d @ /tmp/mysoftware.depot


Are you able to run swlist?

Are you installing the software locally or on a remote system?

These errors can be caused by confusion within the Software Distributor, which can usually be cleared up by following these instructions:


Login as root


Move the directory /var/adm/sw/security and its contents to /var/adm/sw/security.old

mv /var/adm/sw/security /var/adm/sw/security.old


Make an new /var/adm/sw/security directory

mkdir /var/adm/sw/security


Change the owner of the /var/adm/sw/security directory

chown bin:bin security
Change the mode of the /var/adm/sw/security directory

chmod 755 security

Stop the swagentd daemon.

/sbin/init.d/swagentd stop

NOTE: Execute this command on both local and remote machines, if applicable.

Restart the swagentd daemon.

/sbin/init.d/swagentd start



Regards,
Tracy
Jan de Haas
New Member

Re: Problem with swinstall

Try doing an
# swagentd -r

To restart the swagent daemon...
Joaquin Gil de Vergara
Respected Contributor

Re: Problem with swinstall

run this to solve it

# swreg -l depot /tmp/mysoftware.depot
Teach is the best way to learn