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
    Theodore Tso <tytso@mit.edu> wrote:
    > On Sat, May 13, 2006 at 01:27:54PM +0200, Mark Rosenstand wrote:
    > > > 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.
    >
    > Incorrect. The FAQ stated that BSD4.3 and SunOS support executable
    > shell scripts, but both BSD 4.3 and SunOS required that the shell
    > scripts be readable. I know, I've personally worked on BSD 4.3
    > systems and worked on BSD 4.3 source. Read the FAQ more carefully....

    I only confirmed that it works on current BSD's, not that it used to
    work that way on 4.3BSD (although that was my impression.)

    Anyhow, I don't really mind the 111 mode, the point was to show shell
    scripts being treated as executables. What I do want this feature for
    is the "more useful case" that somehow got stripped off in the replies,
    namely setuid and setgid scripts.
    -
    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 15:21    [W:4.474 / U:0.024 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site