lkml.org 
[lkml]   [2006]   [May]   [13]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
SubjectRe: Executable shell scripts
Date
Arjan van de Ven <arjan@infradead.org> wrote:
> On Sat, 2006-05-13 at 12:38 +0200, Mark Rosenstand wrote:
> > Hi,
> >
> > Is it in any (reasonable) way possible to make Linux support executable
> > shell scripts? Perhaps through binfmt_misc?
>
> ehhhhhh this is already supposed to work.

It doesn't:

bash-3.00$ cat << EOF > test
> #!/bin/sh
> echo "yay, I'm executing!"
> EOF
bash-3.00$ chmod 111 test
bash-3.00$ ./test
/bin/sh: ./test: Permission denied

A more useful case is when you setuid the script (and no, this doesn't
need to be running as root and/or executable by all.)
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2006-05-13 13:05    [W:0.297 / U:0.372 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site