Re: Executable shell scripts
- From: Joel Jaeggli <joelja@xxxxxxxxxxx>
- Date: Sat, 13 May 2006 04:37:44 -0700
Mark Rosenstand wrote:
Douglas McNaught <doug@xxxxxxxxxxxx> wrote:
It needs to be readable as well. What ends up happening is that the
kernel sees the execute bit, looks at the shebang line and then does:
/bin/sh test
Since read permission is off, the shell's open() call fails. It will
work fine if you use 755 as the permissions.
Every Unix I've ever seen works this way. It'd be nice to have
unreadable executable scripts, but no one's ever done it.
According to
http://www.faqs.org/faqs/unix-faq/faq/part4/section-7.html both 4.3BSD
and SunOS have. I can confirm that it works on current BSD's as
well.
The faq you're refering to is 10-12 years old. 4.3BSD isn't relevant to
anyone beyond historians at this point.
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
--
-------------------------------------------------
Joel Jaeggli (joelja@xxxxxxxxxxx)
GPG Key Fingerprint:
5C6E 0104 BAF0 40B0 5BD3 C38B F000 35AB B67F 56B2
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
- References:
- Executable shell scripts
- From: Mark Rosenstand
- Re: Executable shell scripts
- From: Arjan van de Ven
- Re: Executable shell scripts
- From: Mark Rosenstand
- Re: Executable shell scripts
- From: Arjan van de Ven
- Re: Executable shell scripts
- From: Douglas McNaught
- Re: Executable shell scripts
- From: Mark Rosenstand
- Executable shell scripts
- Prev by Date: Remove duplicate symbol exports on Alpha
- Next by Date: Re: Executable shell scripts
- Previous by thread: Re: Executable shell scripts
- Next by thread: Re: Executable shell scripts
- Index(es):
Relevant Pages
|