Re: setuid
H. Peter Anvin (hpa@transmeta.com)
21 Mar 1997 01:26:49 GMT
Followup to: <Pine.SUN.3.91.970320193248.23811A-100000@sparc1>
By author: Helmut Riegler <helmut@sparc1.fast.co.at>
In newsgroup: linux.dev.kernel
>
> 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.
-hpa
--
Always looking for a few good BOsFH. ** Linux - the OS of global cooperation
I am Bahá'í -- ask me about it or see http://www.bahai.org/