Operating System - HP-UX
1827376 Members
4389 Online
109963 Solutions
New Discussion

Problem with sd-ux using swlist as a normal user

 
likid0
Honored Contributor

Problem with sd-ux using swlist as a normal user

Hy people,

Up to now in al my machines with a normal user i am able to do a swlist, i have come up with one that wont let me swlist as a normal user:

swlist
# Initializing...
# Contacting target "ananke1"...
WARNING: Security access denied to file "//var/adm/sw/products/INDEX".
ERROR: "an1:/": 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.


in any other machine with exactly the same user i can list the software.


I have killed swagentd, i have looked with swacl, but nothing , with both users when i do a cat to /var/adm/sw/products/INDEX i get a permission denied so its nothing to do with unix perms.

What else can i try any idea??


thnx!!
Windows?, no thanks
2 REPLIES 2
likid0
Honored Contributor

Re: Problem with sd-ux using swlist as a normal user

Sorry i have it!, i forgot to look at the swacl of root, it didnt have the line:

swacl -l root -M any_other:-r---


Thnx all!!
Windows?, no thanks
Jaime Bolanos Rojas.
Honored Contributor

Re: Problem with sd-ux using swlist as a normal user

There are two options for you, please first try this and see if it works:

1. Login as root

2. Stop swagentd
#/sbin/init.d/swagentd stop

3. Verify swagentd has stopped:
#ps â ef | grep swagentd

4. Change directory to /var/adm/sw:
# cd /var/adm/sw

5. Move the directory /var/adm/sw/security and its contents:
# mv security security.orig

6. Copy the directory and its contents
from /usr/newconfig/var/adm/sw/security to /var/adm/sw/security
#cp â Rp /usr/newconfig/var/adm/sw/security /var/adm/sw/security

7. Start swagentd:
#/sbin/init.d/swagentd start

8. Verify swagentd has started:
#ps â ef | grep swagentd


If this does not work, then try this:


$swacl -l root (this gives the output of what is currently set)

$swacl -l root -M any_other:r (this changes the access perms)

If you need to undo the above,
$swacl -l root -D any_other:r


Regards and good luck, jaime.
Work hard when the need comes out.