Subject: Re: SetUID scripts
To: Rick Byers <rickb@iaw.on.ca>
From: Charles M. Hannum <mycroft@mit.edu>
List: netbsd-help
Date: 07/02/1996 18:01:20
Rick Byers <rickb@iaw.on.ca> writes:

> 
> How does NetBSD handle SetUID scripts?  It looks like it just ignores the
> setuid bits (which is good).  I know some OS's have secure scripts, but what
> about NetBSD?  I thought I remembered seeing an option for it in the kernal
> config file, but now I can't find it anywhere (maybe it was in 1.0).  

There's a kernel compilation option called `SETUIDSCRIPTS' that
enables the use of setuid scripts by opening the file and passing a
`/dev/fd/N' argument to the shell in place of the original file name.
Note that this breaks $0.