Operating System - HP-UX
1751961 Members
4636 Online
108783 Solutions
New Discussion юеВ

revertbastille script won't run

 
SOLVED
Go to solution
John Henrikson
Regular Advisor

revertbastille script won't run

Hello,
I ran the bastille script on my system, but it made some changes I'd rather live without.. I had assumed I could revert back by running the Revertbastille script located in /opt/sec_mgmt/bastille/bin/RevertBastille
when I try to run it I get the following errors:
interpreter "/usr/bin/perl" not found
if I edit the script to point to where perl is on my system, it still crashes..
any suggestions?
thanks so much!
6 REPLIES 6
Steven E. Protter
Exalted Contributor

Re: revertbastille script won't run

Bastille is supposed to be run in X-Windows but that is not your problem, just a note.

It requires perl above versoin 5.6, which it appears you do not have installed.

https://payment.ecommerce.hp.com/cgi-bin/swdepot_parser.cgi/cgi/try.pl?productNumber=PERL&date=

download it,

install as follows:

swinstall -s /location_where_you_saved_it \*

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
John Henrikson
Regular Advisor

Re: revertbastille script won't run

My swlist command shows perl B.5.6.1.E installed..

thanks.
John H
John Henrikson
Regular Advisor

Re: revertbastille script won't run

Upon furthur examination )
I see another perl installed.. I'm going to remove that and see if it solves the problem..
I'll let you know thanks
John Henrikson
Regular Advisor

Re: revertbastille script won't run

There is another instance of perl installed, for an application we run on the system.. but my question is why I could run the original bastille script just fine (in an xwindow display of course), but i am unable to run the RevertBastille script at all.. ?
thanks!
Keith Buck
Respected Contributor
Solution

Re: revertbastille script won't run

Solution: 'bastille -r'

Commentary:

You don't need X. In fact, if worse comes to worse, you don't even need Bastille or Perl to revert (although it's safer and will do additional error checking if you do)

Bastille is for both Linux and HP-UX (same source code) but Perl is in different places. Thus, the '#!' line at the top of the perl script is useless. The 'bastille' script is a wrapper written in shell that finds the right version of Perl for the given OS, sets up the rest of your environment for you, and runs the appropriate Perl script.

Also, you might check out the /var/opt/sec_mgmt/bastille/revert/revert-actions shell script. It is a list of all the things that will be executed when you run 'bastille -r'. This may be a helpful resource to you in reverting only those changes which you regret, rather than everything.

Also, if there are some things we could have said in the question/explanation text that would have prevented you from getting into this situation in the first place, please do suggest!

-Keith
John Henrikson
Regular Advisor

Re: revertbastille script won't run

I got it running with a few fairly simple modifications to the script to have it look in the correct places for perl and its libraries..
It wasn't that I was in a huge fix anyway.. just had a couple things I wanted to back out.. I think its an EXCELLENT product, btw Thanks for it!
John H.