* Jonathan Steinert <hachi(_at_)kuiki(_dot_)net> [20031216 21:57]: wrote:
Jonathan Steinert wrote:
> The patch below may not be perfect, but it does set the user and group
down when you start as root and supply the right arguments.
TMTOWTDI
--Jonathan Steinert
... and it wasn't perfect, didn't even work completely. Thanks to Dieter
for pointing out that I need to setgid before I setuid, and several
other crazy things I did.
Here is a diff of the corrected version. It also bails if the
setuid/setgid fails.
Your patch seems to change this
eval 'exec /usr/local/bin/perl -sw -S $0 ${1+"$@"}'
if 0; # not running under some shell
to just
eval 'exec /usr/local/bin/perl -sw -S $0 ${1+"$@"}'
-Wash
http://www.netmeister.org/news/learn2quote.html
--
+======================================================================+
|\ _,,,---,,_ | Odhiambo Washington
<wash(_at_)wananchi(_dot_)com>
Zzz /,`.-'`' -. ;-;;,_ | Wananchi Online Ltd. www.wananchi.com
|,4- ) )-,_. ,\ ( `'-'| Tel: +254 20 313985-9 +254 20 313922
'---''(_/--' `-'\_) | GSM: +254 722 743223 +254 733 744121
+======================================================================+
It's a very *__UN*lucky week in which to be took dead.
-- Churchy La Femme
-------
Sender Permitted From: http://spf.pobox.com/
Archives at http://archives.listbox.com/spf-discuss/current/
Latest draft at http://spf.pobox.com/draft-mengwong-spf-02.9.4.txt
To unsubscribe, change your address, or temporarily deactivate your
subscription,
please go to
http://v2.listbox.com/member/?listname(_at_)½§Åv¼ð¦¾Øß´ëù1Ií-»Fqx(_dot_)com
pgpqwXvCyPisu.pgp
Description: PGP signature