Operating System - HP-UX
1747983 Members
4708 Online
108756 Solutions
New Discussion юеВ

Re: HPUX 11.0 swinstall error message swacl list

 
SOLVED
Go to solution
LG Porter
Frequent Advisor

HPUX 11.0 swinstall error message swacl list

I have a L-2000 Server that running HPUX 11.00. I am attempting to install the lastest version of Perl as root, however each time I attempt to install the software, I receive the following message from swinstall: "hp01:/tmp/perl/perl_b.5.6.1.e_hp-ux_b.11.00_32+64.depot": you do not have required permissioms to perform this operation. Check permissions using the "swacl" command......Question: How do I check the swacl list? How do I recolve this issue?
6 REPLIES 6
Michael Tully
Honored Contributor
Solution

Re: HPUX 11.0 swinstall error message swacl list

This TKB (KBRC00000273) document should help
Regards
Michael

These errors can be caused by confusion within the Software Distributor. There are different
sources of confusion are usually cleared up by following these instructions:

1.Login as root

2.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

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

mkdir /var/adm/sw/security

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

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

chmod 755 security

6.If installing from a cdrom unmount the cd.

umount /cdrom

7.Change the mode of the cdrom mount direcotry.

chmod 777 /cdrom

8.Stop the swagentd daemon.

/sbin/init.d/swagentd stop

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

9.Register the source as a depot:
If the file is on the local machine:

swreg -l depot /tmp/PHxx_yyyy.depot

If the cdrom is on local machine:

swreg -l depot /cdrom
If the cdrom is on remote machine:

swreg -l depot @ "hostname":/cdrom

10.Restart the swagentd daemon.

/sbin/init.d/swagentd start

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

11.If installing from a cdrom remount the cd.

mount /cdrom

12.Now re-install the software. swinstall

Of course, these errors may actually be a function of a non-root user attempting to execute
swinstall or some other Software Distributor function. To allow a non-root user to install patches
read the following.

Description

The swacl mechanism protects all the different objects and actions that Software Distributor
(SD) knows about. Note that this is not the same thing as the similarly named file system ACLs
(Access Control Lists).

The man page for swacl(1) is not particularly detailed but gives an overview. The full details are
described in the CDROM manual Managing Software with HP-UX (B2355-90054). Take a
look at Chapter 8 Controlling Access to Software Objects. There are so many options that you
really need to go through the section, but the specific area you will need is Root ACLs. This
object is the one on which you need to open permissions.

To avoid the error, insert the permissions on the host object (not root object).

For example:

1.Write the host level for swacl to a file.

# swacl -l host > swacl.host

2.Display the new file:

# cat swacl.host

#
# swacl Host Access Control List
#
# For host: hpchs9
#
# Date: Mon Dec 29 17:39:08 1997
#
# Object Ownership: User= root
# Group=sys
# Realm=hpchs9.cup.hp.com
#
# default_realm=hpchs9.cup.hp.com
group:swadm:crwit
any_other:-r--t


3.Edit the file swacl.host

4.Give permissions to the desired user.

user:desired_username:a

Note: The a gives the user all permissions. Refer to the swacl(1) man page for
details on the more specific permissions such as read/write/insert etc.

EXAMPLE: To give permissions to user max:

user:max:a

5.Now swacl.host looks like this without the comments being displayed:

user:max:crwit
group:swadm:crwit
any_other:-r--t

6.Write this new version back into the system with the swacl command.

swacl -l host -F swacl.host

7.Go back to users swinstall session and select Action->Change Target.

8.Change the target to /tmp, for example.

Anyone for a Mutiny ?
S.K. Chan
Honored Contributor

Re: HPUX 11.0 swinstall error message swacl list

Before you do anything else try this ..
# /sbin/init.d/swagentd stop
# /sbin/init.d/swagentd start
I know restarting swagentd is always the first thing you would do before you troubleshoot further. Just try this first and see if it helps.
erics_1
Honored Contributor

Re: HPUX 11.0 swinstall error message swacl list

LG,

I agree with Mr. Khan. In my experience, 9 times out of 10, restarting the swagent daemon clears the problem. Also, you may want to post your swinstall command to this thread...just in case.

Hope this helps,
Eric
Anil C. Sedha
Trusted Contributor

Re: HPUX 11.0 swinstall error message swacl list

Porter,

Do these simple steps. I believe your problem should get resolved.

swacl -l depot > new_file

vi new_file
edit changes and save file

swacl -l depot -F new_file

If you need to add an entry for a user

/usr/sbin/swacl -l host -M group:groupname@hostname:writ

Regards,
Anil
If you need to learn, now is the best opportunity
Carsten Krege
Honored Contributor

Re: HPUX 11.0 swinstall error message swacl list

The problem is probably not related to the ACLs of Software Distributor. I suggest to check whether the results returned of the following commands are consistent:

# hostname
# nslookup `hostname`
# ifconfig lan0
# nslookup

If the results are not consistent, ie. the IP address of the local hostname is not matching the IP on lan0, SD will detect that you are trying to install to a remote node.

But if you are trying to install to a remote node, you need special ACLs. Hence the error message.

The solution is to make the IP address matching the hostname and the IP address on lan0 (the primary IP!) the same.

Carsten
-------------------------------------------------------------------------------------------------
In the beginning the Universe was created. This has made a lot of people very angry and been widely regarded as a bad move. -- HhGttG
Ravi_8
Honored Contributor

Re: HPUX 11.0 swinstall error message swacl list

Hi,

#/usr/sbin/swagentd -r
should solve this problem, after this you may face another problem, i.e swinstall hangs while analyzing. in this case install patches from latest support plus CD.
never give up