Re: Restarting apache from child?

[prev] [thread] [next] [Date index for 2005/03/15]

From: Scott Gifford
Subject: Re: Restarting apache from child?
Date: 19:10 on 15 Mar 2005
"Jain, Abhay K, ALABS" <jainabhay@xxx.xxx> writes:

[...]

> Scripts such as perl or ksh do not become root with setuid.
> They really do not get the same privilege. Setuid to root
> works ok with a compiled executable.

It's OS-specific, so that may or may not be true.  Some OS's, like
Solaris, implement this in a secure way; others provide suidperl.  It
looks like on my Fedora Core 2 Linux system, it simply doesn't work at
all.

Still, it's easy to write a small wrapper script:

    void main() { execl("/path/to/script.pl","script.pl"); }

Make sure you turn on taint checking in your script if you do this,
since Perl won't do it for you automatically.

----ScottG.

Restarting apache from child?
Maxim Nechaev 23:48 on 13 Mar 2005

Re: Restarting apache from child?
Scott Gifford 16:54 on 15 Mar 2005

Re[2]: Restarting apache from child
Maxim Nechaev 08:16 on 16 Mar 2005

Re: Restarting apache from child
Scott Gifford 14:21 on 16 Mar 2005

RE: Restarting apache from child?
Jain, Abhay K, ALABS 18:05 on 15 Mar 2005

Re: Restarting apache from child?
Scott Gifford 19:10 on 15 Mar 2005

Generated at 21:06 on 16 Mar 2005 by mariachi v0.52