[ale] debian won't run scripts from cd
Brian Pitts
brian at polibyte.com
Thu Aug 19 17:55:13 EDT 2010
On 08/19/2010 05:36 PM, Tim Watts wrote:
> I'm trying to run a script on a cd and Debian Lenny refuses to run it
> with a 'bad interpreter' error:
>
> bash: /media/cdrom/autorun.sh: /bin/sh: bad interpreter: Permission
> denied
>
>
> sh is a symlink to bash. I have no problem running #!/bin/sh scripts
> elsewhere; it's only from the cd that it fails. The cd script has the x
> bits set.
>
> Is there some special mojo I need to perform to allow running scripts
> from a cd?
It was probably automatically mounted with the 'noexec' option. If so,
remounting it with 'exec' should fix the problem.
mount -o remount,exec /media/cdrom
--
All the best,
Brian Pitts
More information about the Ale
mailing list