tobold.org

correct • elegant • free

△ comp.unix.shell △

◅ Homework help

Gawk v24.7: Why Bother??? ▻

executing scripts without read permission

In article <Zjo95.67$EI1.927@burlma1-snr2>,
Barry Margolin  <barmar@genuity.net> wrote:
>Actually, there's one other way I think this could be done, but it requires
>special OS support, similar to the way some versions of Unix allow setuid
>scripts.  If the OS sees that a script has execute permission but not read
>permission, it could open it internally, and then pass /dev/fd/# as the
>scriptname parameter.

Wouldn't work over NFS.

Tim.
--
Tim Goodwin   | "Not ideal, I grant you, but life's
Leicester, UK | like that." -- Ian Batten

Original headers:

From: tjg@star.le.ac.uk (Tim Goodwin)
Newsgroups: comp.unix.shell
Subject: Re: executing scripts without read permission
Date: 12 Jul 2000 13:40:08 +0100
Message-ID: <8khovu$pre$1@ltpcg.star.le.ac.uk>
References: <396621FF.A201B87E@epfl.ch>
  <3965DFDB.9CB199E9@inforonics.com> <39667C68.758A78EB@epfl.ch>
  <Zjo95.67$EI1.927@burlma1-snr2>

△ comp.unix.shell △

◅ Homework help

Gawk v24.7: Why Bother??? ▻