[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[ale] debian won't run scripts from cd
- Subject: [ale] debian won't run scripts from cd
- From: brian at polibyte.com (Brian Pitts)
- Date: Thu, 19 Aug 2010 17:55:13 -0400
- In-reply-to: <[email protected]>
- References: <[email protected]>
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