1830899 Members
3447 Online
110017 Solutions
New Discussion

swlist command

 
SOLVED
Go to solution
mukkala_1
Occasional Advisor

swlist command

normal user required swlist command access
8 REPLIES 8
Torsten.
Acclaimed Contributor

Re: swlist command

Should work by default:

#/usr/sbin/swlist

Hope this helps!
Regards
Torsten.

__________________________________________________
There are only 10 types of people in the world -
those who understand binary, and those who don't.

__________________________________________________
No support by private messages. Please ask the forum!

If you feel this was helpful please click the KUDOS! thumb below!   
Dennis Handly
Acclaimed Contributor

Re: swlist command

You can configure it so swlist can't be used. I.e. remove SUID bit.
Or use swacl(1m) to prevent it.
mukkala_1
Occasional Advisor

Re: swlist command

swlist command permission info

-r-sr-xr-x 11 root bin 247800 Feb 17 2007 /usr/sbin/swlist

below error i am getting while executing swlist command user level

xx1@test1[/home/test1]$ swlist
#Initializing...
#Contacting target "test1"....
WARNING: Security access denied to file " //var/adm/sw/products/INDEX".
ERROR: "test1:/": you do not have permission for this operation.
The depot owner, system administrator, or alternate root owner may need to use the "swreg" or "swacl" command to give you permission. OR, to manage applications designed and packed for nonprivileged mode, see the "run_as_superuser" option in the "sd" manpage.

Ivan Krastev
Honored Contributor
Solution

Re: swlist command

Use swacl to check what access perms are set:
# swacl -l root

And modify it:
# swacl -l root -M any_other:r

regards,
ivan
mukkala_1
Occasional Advisor

Re: swlist command

swac -l root output as follows

swacl -l rot
#
#swacl Installed software access control list
#
#For host: test1:/
#
#Date Fri jan 4 17:16:13 2008

# Object Ownership: User=root
Group=sys
Realm=test1
#
#default_realm=test1
object_owner:crwit
mukkala_1
Occasional Advisor

Re: swlist command

swac -l root output as follows

swacl -l root
#
#swacl Installed software access control list
#
#For host: test1:/
#
#Date Fri jan 4 17:16:13 2008

# Object Ownership: User=root
Group=sys
Realm=test1
#
#default_realm=test1
object_owner:crwit
mukkala_1
Occasional Advisor

Re: swlist command

is there any impact to execute this command

# swacl -l root -M any_other:r

Torsten.
Acclaimed Contributor

Re: swlist command

This will give read access to any other user, that means you can do swlist with any other account.

the swacl -l root

output will show this with

any_other:-r---

in the last line.

Hope this helps!
Regards
Torsten.

__________________________________________________
There are only 10 types of people in the world -
those who understand binary, and those who don't.

__________________________________________________
No support by private messages. Please ask the forum!

If you feel this was helpful please click the KUDOS! thumb below!