Re: setuid

H. Peter Anvin (
21 Mar 1997 01:26:49 GMT

Followup to: <Pine.SUN.3.91.970320193248.23811A-100000@sparc1>
By author: Helmut Riegler <>
In newsgroup:
> There is no way to create setuid scripts. You have either to write C
> wrapper (2-3 lines) and set the SUID bit for this program which calls
> your script, or use sudo.

... unless you program your scripts in perl (perl, unlike sh, handles
setuid scripts properly.)

Just make the #! line /usr/bin/suidperl instead of /usr/bin/perl.


Always looking for a few good BOsFH.  **  Linux - the OS of global cooperation
        I am Bahá'í -- ask me about it or see