1835266 Members
2324 Online
110078 Solutions
New Discussion

Re: 'sw' tools issue

 
SOLVED
Go to solution
Jason VanDerMark
Trusted Contributor

'sw' tools issue

Greetings,

I am having a problem when trying to access any sw utility (swlist, swinstall, swcopy, swacl). The error reads as follows:

ERROR: Could not initialize security. Process does not have super-user privilege.

I am sure that this is an easy one, but it is eluding me. Thanks in advance for your help.
Tie two birds together, eventhough they have four wings, they cannot fly.
13 REPLIES 13
Rita C Workman
Honored Contributor

Re: 'sw' tools issue

Your problem sounds like a permissions issue. You need to run swacl. This thread spells it well:

http://forums.itrc.hp.com/cm/QuestionAnswer/1,1150,0xc5ed6c96588ad4118fef0090279cd0f9,00.html

/rcw
Jason VanDerMark
Trusted Contributor

Re: 'sw' tools issue

I have already tried all the steps detailed in the forums and nothing has worked. I cannot even get any information from swacl it gives the same error as the rest. :-(
Tie two birds together, eventhough they have four wings, they cannot fly.
Rita C Workman
Honored Contributor

Re: 'sw' tools issue

Are you logged in as root???
Jason VanDerMark
Trusted Contributor

Re: 'sw' tools issue

I am logged in as root. The system has no NIS, DNS, or hardly anything else running. The server is not running in trusted mode. I was attempting to install mutt(email client) and it was giving me some problems( not a valid depot. Forgot to register it...oops) went back to the command line and it would no longer allow me to do anything with sw. Attempted to fix it by applying all the changes I could, even renamed the sw directory and tar-ed one over from an identicle box to no avail. Any help is greatly appreciated.
Tie two birds together, eventhough they have four wings, they cannot fly.
Rita C Workman
Honored Contributor

Re: 'sw' tools issue

Did you try stopping and restarting the swagent yet?

/sbin/init.d/swagentd stop
/sbin/init.d/swagentd start

Then retry...

/rcw
Jason VanDerMark
Trusted Contributor

Re: 'sw' tools issue

Yep, tried that too. Nothing seems to have helped. I know its probably a configuration file lying somewhere that I can just tweak and go, but I don't know where it could be.

Tie two birds together, eventhough they have four wings, they cannot fly.
Rita C Workman
Honored Contributor

Re: 'sw' tools issue

You said you can't run any sw utility...

Can you run swlist?

/rcw
Jason VanDerMark
Trusted Contributor

Re: 'sw' tools issue

Nope, can't run swlist, swinstall, swacl, swreg, probably other sw tools I missed.

Tie two birds together, eventhough they have four wings, they cannot fly.
Rita C Workman
Honored Contributor

Re: 'sw' tools issue

Now a couple other basic questions....may sound off topic, but it's not.

Run nslookup (by ip and hostname) does it run right?
Run uname -a does it look right?

/rcw
Jason VanDerMark
Trusted Contributor

Re: 'sw' tools issue

Ran the nslookups by both ip and by hostname for several systems with no problems, and the uname -a looks perfectly normal.
Tie two birds together, eventhough they have four wings, they cannot fly.
Andy Monks
Honored Contributor
Solution

Re: 'sw' tools issue

Check your permissions on the sw* executables :-

-r-sr-xr-x 10 root bin 1478656 May 30 1996 /usr/sbin/swinstall

All the other commands are hard links.

Andy
Rita C Workman
Honored Contributor

Re: 'sw' tools issue

Good...I did some looking around for similar threads and I found this. Take a look down and start looking at what Stefan Farrely wrote at 11:20 and through the end. It looks pretty promising.....and since I have to head out I'm hoping this will help you. Do the swlist resolution..the IPD reload may still be a problem, then look near the end at the suggestion to check if files under /var/adm/sw/product have been removed and restore them....
Here's the the thread:

http://forums.itrc.hp.com/cm/QuestionAnswer/1,1150,0x68970559ff7cd4118fef0090279cd0f9,00.html

Gotta run...meeting !!
/rcw
Jason VanDerMark
Trusted Contributor

Re: 'sw' tools issue

I found what was causing the problem, somehow bin was assigned as the owner of swinstall. Once it was changed back to root, things were perfect again. I knew it was something simple. Thank you all for you help.

Regards,
Jason V.
Tie two birds together, eventhough they have four wings, they cannot fly.