Stoopid script failure

inode0 inode0 at gmail.com
Sat Feb 6 15:25:29 UTC 2010


On Sat, Feb 6, 2010 at 9:03 AM, Patrick O'Callaghan
<pocallaghan at gmail.com> wrote:
> Can anyone explain why this doesn't work? I've been writing shell
> scripts on and off for several decades and I can't see what's going on
> here. Is senility setting it?
>
> $ cat > tst
> #!/bin/sh
> echo foo
> $ chmod +x tst
> $ ls -l tst
> -rwxrwxr-x 1 poc poc 19 2010-02-06 10:22 tst
> $ type tst
> tst is ./tst
> $ tst
> bash: ./tst: Permission denied
>
> (SElinux is off, if it matters).

Any chance the filesystem is mounted with noexec?

John


More information about the users mailing list