Why do you need the DSO to run as root?...
If it's just to do a specific task, it may be easier to write a shell script
(or PHP script, or Perl script) and suid it so that "nobody" can do that one
specific task that requires root access.
--
WARNING [EMAIL PROTECTED] address is an endangered species -- Use
[EMAIL PROTECTED]
Wanna help me out? Like Music? Buy a CD: http://l-i-e.com/artists.htm
Volunteer a little time: http://chatmusic.com/volunteer.htm
----- Original Message -----
From: Richard Kurth <[EMAIL PROTECTED]>
Newsgroups: php.general
To: php <[EMAIL PROTECTED]>
Sent: Wednesday, September 05, 2001 5:08 PM
Subject: Question about running php as root
> I have two versions of php running on my site one as a DSO with Apache
> and one as a cgi for command line scripting.
> I have scripts that run from a crontab that run at root.
>
> Now I know I can not run a script at root from PHP that is running as
> A dso with Apache.
>
> But is there a way to make one of my root scripts run by sending it a
> command to do so from the DSO version of PHP like with system command
> or something like that. Or some roundabout way to make it think root is
> asking the script run.
>
> I hope you understand what I am asking.
>
>
>
>
>
>
>
>
>
>
>
> Best regards,
> Richard
> mailto:[EMAIL PROTECTED]
>
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]