Linux - SoftwareThis 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
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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
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")."
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.
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)
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
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.