Intrusion Prevention
Reply
Visitor
yhkim
Posts: 3
Registered: ‎01-15-2009
0

sensor_4_1r3.sh Upgrade

I want OS Upgrade of IDP200 Sensor

But, "bash: ./sensor_4_1r3.sh: bad interpreter: Permission denied" output message.

 

[root@idp tmp]# ls
hmd.sock  lost+found  mondo-restore.log  sensor_4_1r3_patch.sh  sensor_4_1r3.sh
[root@idp tmp]# chmod 755 sensor_4_1r3.sh
[root@idp tmp]# ./sensor_4_1r3.sh
bash: ./sensor_4_1r3.sh: bad interpreter: Permission denied
[root@idp tmp]#

 

What is problem?

 

Contributor
RichardHitti
Posts: 10
Registered: ‎01-13-2009
0

Re: sensor_4_1r3.sh Upgrade

Hi,

Did you get this when using a non-root user?

can you please send me the output of the "ls -ltr" of the /tmp directory to check the size of the file and make sure the file is not corrupted.

Try to run the script from the /tmp using the "sh" and not "./" even if this is the same for most cases.

 

Richard    JNCIA-IDP 

Recognized Expert
Daniele
Posts: 164
Registered: ‎11-06-2007
0

Re: sensor_4_1r3.sh Upgrade

Hi,

also, please verify the MD5 hash of the script you're trying to execute.

From the download website, the md5 for sensor_4_1r3.sh is:

deb433a930696d33ec958ebc3c959243

 

Cheers

Daniele

***Contributor at Router Freak blog***
Juniper Employee
dkan
Posts: 4
Registered: ‎06-24-2008
0

Re: sensor_4_1r3.sh Upgrade

As Daniele pointed out, please verify that the MD5 sum of your shar file is correct. Typically this sort of error happens when the shar file is downloaded to a Windows box and Windows automatically converts the newline characters to CR-LF sequences. This conversion corrupts the shar and causes the error you saw to occur.
Recognized Expert
Daniele
Posts: 164
Registered: ‎11-06-2007
0

Re: sensor_4_1r3.sh Upgrade

Hi,

I confirm that you need to execute the installation script using "sh <filename>" and not "./<filename>"... this is for security.

 

Ciao :smileyhappy:

Daniele

***Contributor at Router Freak blog***
Copyright© 1999-2013 Juniper Networks, Inc. All rights reserved.