Latest LQ Deal: Linux Power User Bundle
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
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!


  Search this Thread
Old 08-20-2004, 07:47 PM   #1
LQ Newbie
Registered: Aug 2004
Posts: 28

Rep: Reputation: 15
Can't execute a file since bad interpreter

After mounting my floppy and untarring a .tar file, I executed one file called as "configure" using the command ./configure and it said,
bash: ./configure: /bin/bash: bad interpreter: permission denied

So how to successfully execute that file?
Old 08-20-2004, 07:54 PM   #2
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910
Do a
ls -ld /bin/*sh*

Does bash show up, if so, what are the permissions?

Old 08-20-2004, 08:52 PM   #3
Registered: Jul 2003
Distribution: Slackware
Posts: 389

Rep: Reputation: 52
Re: Can't execute a file since bad interpreter

Originally posted by gopikrish
After mounting my floppy

/bin/bash: bad interpreter: permission denied
Is the floppy mounted with the "noexec" (no execute) option? You can find out by running the mount command.

The floppy may be mounted "noexec" without you specifying it in /etc/fstab. For example, msdos filesystems mount with the "noexec" option by default, resulting in the "permission denied" error.

If you're using the msdos filesystem on the floppy, add "exec" to the options in /etc/fstab for the floppy device in question. For example:
/dev/fd0         /home/lyle/floppy auto noauto,users,exec     0   0


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
bad interpreter: No such file or directory EcLip$e Linux - General 34 10-07-2013 03:11 AM
: bad interpreter: No such file or directory ciberrust Linux - Networking 10 09-09-2010 06:51 AM
: bad interpreter: No such file or directory lnx8 Linux - General 4 04-29-2004 02:56 AM
sh = bad interpreter Comarez Linux - Newbie 3 01-11-2004 06:33 AM
bash: ./myscript: bad interpreter: No such file or directory Stefangeelen Linux - Newbie 3 09-05-2002 01:50 AM

All times are GMT -5. The time now is 10:32 PM.

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