[CentOS] install DVD mounted -noexec by default == bad interpreter permission denied

Dave tdbtdb+centos at gmail.com
Tue Jul 28 09:15:17 UTC 2009


On Mon, Jul 27, 2009 at 3:20 AM, James Pearson
<james-p at moving-picture.com>wrote:

> Dave wrote:
> > command I typed:
> > /media/MATHWORKS_R2009A/install &
> >
> > Error message I received:
> > [1] 10759
> > [root at taro matlab]# bash: /media/MATHWORKS_R2009A/install: /bin/sh:
> > bad interpreter: Permission denied
> >
> > Solution:
> >
> > mount -o remount -o exec /dev/scd0
> >
> > (scd0 is the drive where the DVD is inserted.)
> >
> > Hope this helps someone with the same problem.
>
> You could have probably run the script using:
>
> sh /media/MATHWORKS_R2009A/install
>

No, I had tried that before I figured out that the DVD had been mounted with
the noexec option. Noexec must be the default. No script located on the DVD
can be executed by any shell so long as that option is in effect, AIUI.
Dave
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.centos.org/pipermail/centos/attachments/20090727/3b5beed5/attachment.html>


More information about the CentOS mailing list