LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 08-20-2004, 10:35 PM   #1
LinuxRam
Member
 
Registered: Jul 2004
Distribution: Red Hat 9, Mandrake 9.2
Posts: 211

Rep: Reputation: 30
: bad interpreter: Permission denied


I have following read me of password cracking software:--

Installing John the Ripper
============================

Compiling the Sources
-----------------------

Compile the sources with:

cd src
make

You'll get a list of supported systems. Select one of them, and type:

make SYSTEM

or, if your system is not listed, try:

make generic

If everything goes well, this will create the John binary in run/john.

You can then copy the run directory anywhere you like: these are all thefiles that John needs at runtime.

Installing from a Binary Distribution
---------------------------------------

You might need to take run/{john.ini,*.chr,password.lst} from the source
distribution for things to work, unless these files are present already.

Note on Moving Binaries between Systems
-----------------------------------------

On some architectures, a few hardware performance parameters are detected
at compile time -- in particular, this is done for SPARC and generic make
targets. If you then move the binary to a different system, you might not
get the best performance. It is better to re-compile John on each system,
where possible.


When i tried , it gives me following error ???

[root@akshar src]# make generic
rm -f arch.h
gcc -c -Wall -O2 -fomit-frame-pointer detect.c
gcc -s detect.o -o detect
./best.sh "make" \
"DES_fmt.o DES_std.o" \
"MD5_std.o" \
"BF_std.o"

/bin/sh: ./best.sh: /bin/sh: bad interpreter: Permission denied
make: *** [generic.h] Error 126


 
Old 08-21-2004, 05:12 AM   #2
hw-tph
Senior Member
 
Registered: Sep 2003
Location: Sweden
Distribution: Debian
Posts: 3,032

Rep: Reputation: 58
Try open up the best.sh script and change the first line from:
Code:
#!/bin/sh
to...
Code:
#!/bin/bash
Håkan
 
Old 08-22-2004, 09:33 PM   #3
LinuxRam
Member
 
Registered: Jul 2004
Distribution: Red Hat 9, Mandrake 9.2
Posts: 211

Original Poster
Rep: Reputation: 30
After changing /bin/sh to /bin/bash error is present:-


[root@akshar src]# make generic
rm -f arch.h
gcc -c -Wall -O2 -fomit-frame-pointer detect.c
gcc -s detect.o -o detect
./best.sh "make" \
"DES_fmt.o DES_std.o" \
"MD5_std.o" \
"BF_std.o"
/bin/sh: ./best.sh: /bin/bash: bad interpreter: Permission denied
make: *** [generic.h] Error 126
[root@akshar src]# vi best.sh
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Bash: bad interpreter, permission denied jpantone Linux - General 22 05-27-2010 06:05 AM
/bin/sh: bad interpreter: Permission denied itsaso Linux - Newbie 6 05-18-2005 10:00 AM
/bin/sh: bad interpreter: Permission denied linmix Linux - Software 12 08-16-2004 06:40 AM
bash: ./ms-stop: bad interpreter: Permission denied thamarsol Linux - Software 14 05-19-2003 05:15 PM
perl: bad interpreter: Permission denied bulliver Linux - Software 4 01-27-2003 03:12 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 03:37 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration