i am fairly confident that the camel book knows what it's
talking about. i would re-check that test that you tried,
or post it here, so we can gnaw on it.
On Tue, 8 Feb 2000, Michael Orion Jackson wrote:
> Date: Tue, 8 Feb 2000 01:26:16 -0600 (CST)
> To: Linux Fanatics <[EMAIL PROTECTED]>
> From: Michael Orion Jackson <[EMAIL PROTECTED]>
> Reply-To: Michael Orion Jackson <[EMAIL PROTECTED]>
> Subject: perl nad-biting
>
> Sigh. I think I'm developing a definite love-hate thing
> with perl. Here's the situation:
>
> I have a program (that's going to be run either under
> Apache::Registry or eventually transmuted into a mod_perl doohickey) that
> needs, for part of it's life cycle, to do something _as_ a particular
> user. Well, which user it is will change on a per-invocation basis
> but that is doable via mod_rewrite and @ARGV or something.
>
> I looked in the camel book and it recommended forking off a child
> process and changing the UID et al. within the child process. The
> child process then does whatever with it's lower, presumably safer
> set of permissions and whatnot, with it's output going back to the
> parent process. Problem is, a quick test script I wrote up to try this
> doesn't work. ???
>
> To recap:
>
> 1) script that's going to be run by nobody (i.e. Apache/perl)
> 2) needs to run at some point as (fill in user name here)
>
>
> I thought about using (cgiwrap || suEXEC), but that has it's own
> set of nasty headaches. Maybe there is some subtle Unix jujitsu I can
> whip on it outside of the bounds of perl?
>
> A six-pack of whatever your fav beer at HEB is to whoever
> knows the answer to this bagbiter problem. Or something else if (you.age
> < 21).
>
> If you would like me to post the sample code I will. Thanks in
> advance.
>
> Mike
>
> *****************Michael Orion Jackson******************
> ***********TAMS Class of 96/UT Class of 200?************
> *********************Random Quote:**********************
> *Mnemonic | Operator Type | Operators *
> *Ulcer Unary + - ++ -- [etc.] *
> *Addicts Arithmetic (& shift) * / % + - << >> *
> *Really Relational > < >= <= == != *
> *Like Logical & Bitwise && || & | ^ *
> *C Conditional (ternary) A > B ? X : Y *
> *A lot Assignment = += -= *= [etc.] *
> * From "Thinking in Java" by Bruce Eckel :^) *
> ********************************************************
>
>
---------------------------------------------------------------------------
> Send administrative requests to [EMAIL PROTECTED]
--
tom carlile [EMAIL PROTECTED]
professional systems wrangler http://sacrilege.org
---------------------------------------------------------------------------
Send administrative requests to [EMAIL PROTECTED]