LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 12-04-2004, 03:46 PM   #1
Master Fox
Member
 
Registered: Aug 2004
Location: UK
Distribution: Arch (Duke / Desktop), FreeBSD 6.1 (Home-Dev server)
Posts: 131

Rep: Reputation: 15
/usr/bin/env: bad interpreter: Permission denied


I am getting this problem,

wolfcub:/home/lordsep/BitTornado-CVS# ./btdownloadheadless.py
bash: ./btdownloadheadless.py: /usr/bin/env: bad interpreter: Permission denied


I downloaded BitTorando linux version, console since i cant run vnc on it but when i try to run the file i get

./btdownloadheadless.py: /usr/bin/env: bad interpreter: Permission denied


this is on debian 3.0 any help??
 
Old 12-04-2004, 03:57 PM   #2
monohouse
Member
 
Registered: Oct 2004
Distribution: Arch
Posts: 206

Rep: Reputation: 30
usually "Permission Denied" happens when you don't have access to something, in this case probably the file /usr/bin/env,
I suggest you try running that as root, see what happens
 
Old 12-05-2004, 06:45 AM   #3
Master Fox
Member
 
Registered: Aug 2004
Location: UK
Distribution: Arch (Duke / Desktop), FreeBSD 6.1 (Home-Dev server)
Posts: 131

Original Poster
Rep: Reputation: 15
I was in root, but i kind of fixed it now, thanks alot for the help
 
Old 02-14-2009, 01:07 AM   #4
mustafakyr
LQ Newbie
 
Registered: Dec 2008
Posts: 4

Rep: Reputation: 0
Quote:
Originally Posted by Master Fox View Post
I was in root, but i kind of fixed it now, thanks alot for the help
Please Explain how you fixed it, I am suffereing from the same problem.
 
Old 02-15-2009, 06:58 PM   #5
Master Fox
Member
 
Registered: Aug 2004
Location: UK
Distribution: Arch (Duke / Desktop), FreeBSD 6.1 (Home-Dev server)
Posts: 131

Original Poster
Rep: Reputation: 15
Intresting.. Blimey this dates back to 2004.

Err. All I can suggest is has the file got executable permissions? - try: "chmod +x <filename>" - I'll try to remeber what I did or was doing wrong.
 
Old 03-01-2009, 06:33 PM   #6
khunrath
LQ Newbie
 
Registered: Mar 2009
Posts: 2

Rep: Reputation: 0
Possible answer

Having the same problem in vector linux 6.0 installing TeXLive2008. Found these in penguinparens.blogspot.com

"The partition your script lives on may be mounted with the "user" option set. "user" implies "noexec" (see the manpage for "mount"), which is going to keep you from running executables. And while running a binary executable from this kind of partition fails more clearly, trying to run a script with a shebang gives you this more confusing error message.

To fix! Add "exec" after your "user" flag in /etc/fstab. (again, see "man mount")."

Worked for me.
 
Old 03-05-2009, 01:19 AM   #7
mustafakyr
LQ Newbie
 
Registered: Dec 2008
Posts: 4

Rep: Reputation: 0
Quote:
Originally Posted by khunrath View Post
Having the same problem in vector linux 6.0 installing TeXLive2008. Found these in penguinparens.blogspot.com

"The partition your script lives on may be mounted with the "user" option set. "user" implies "noexec" (see the manpage for "mount"), which is going to keep you from running executables. And while running a binary executable from this kind of partition fails more clearly, trying to run a script with a shebang gives you this more confusing error message.

To fix! Add "exec" after your "user" flag in /etc/fstab. (again, see "man mount")."

Worked for me.
I found an "noexec" definition in the /etc/fstab and change it to "exec" , problem solved. I was trying to install the vmware player to linux, and the installation script was extracting executable file into /tmp folder. This folder was in another partition with "noexec" spec in fstab.
 
Old 12-04-2011, 02:30 AM   #8
erikig
LQ Newbie
 
Registered: Sep 2009
Posts: 2

Rep: Reputation: 0
Lightbulb Fixing This

I ran into this issue when installing VMWare Player 4.0 on CentOS so I figured I'd share how it was resolved.

In my case, VMWare installer extracts and runs from my /tmp directory which was mounted with noexec permissions. I found this out by running mount.
I fixed it by remounting with mount -o remount

Code:
Extracting VMware Installer...done.
VMware-Player-4.0.0-471780.i386.bundle: /tmp/vmis.Y21747/install/vmware-installer/vmware-installer: /usr/bin/env: bad interpreter: Permission denied

root@server# mount
/dev/sda5 on / type ext3 (rw,usrquota)
proc on /proc type proc (rw)
sysfs on /sys type sysfs (rw)
devpts on /dev/pts type devpts (rw,gid=5,mode=620)
/dev/sda8 on /home type ext3 (rw,usrquota)
/dev/sda6 on /tmp type ext3 (rw,noexec,nosuid) <----- BROKEN, Causes issue
/dev/sda3 on /usr type ext3 (rw,usrquota)
/dev/sda2 on /var type ext3 (rw,usrquota)
/dev/sda1 on /boot type ext3 (rw)
tmpfs on /dev/shm type tmpfs (rw)
none on /proc/sys/fs/binfmt_misc type binfmt_misc (rw)

root@server# mount -o remount,exec /dev/sda6

root@server# mount
/dev/sda5 on / type ext3 (rw,usrquota)
proc on /proc type proc (rw)
sysfs on /sys type sysfs (rw)
devpts on /dev/pts type devpts (rw,gid=5,mode=620)
/dev/sda8 on /home type ext3 (rw,usrquota)
/dev/sda6 on /tmp type ext3 (rw,nosuid) <----- FIXED
/dev/sda3 on /usr type ext3 (rw,usrquota)
/dev/sda2 on /var type ext3 (rw,usrquota)
/dev/sda1 on /boot type ext3 (rw)
tmpfs on /dev/shm type tmpfs (rw)
none on /proc/sys/fs/binfmt_misc type binfmt_misc (rw)

Last edited by erikig; 12-04-2011 at 02:33 AM.
 
Old 02-09-2012, 08:25 AM   #9
jozsefsamuel
LQ Newbie
 
Registered: Feb 2012
Posts: 5

Rep: Reputation: Disabled
I had the same issue with out installer

Hi,

I had the same issue with my installer... I fought for hours trying to figure out why I could not execute the internal script
At last, I managed to do it - see my comment at: http://www.greensql.com/content/trie...d-what-do-i-do

It's GREAT, now everything works!
 
  


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
Selinux, ./INSTALL: /bin/sh: bad interpreter: Permission denied TomF Linux - Security 2 12-08-2004 11:36 AM
: bad interpreter: Permission denied LinuxRam Linux - Newbie 2 08-22-2004 09:33 PM
/bin/sh: bad interpreter: Permission denied linmix Linux - Software 12 08-16-2004 06:40 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 08:08 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