Re: Question about running php as root

From: Date: Fri, 07 Sep 2001 05:08:30 +0000
Subject: Re: Question about running php as root
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-66334@lists.php.net to get a copy of this message
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 richard@zend.com address is an endangered species -- Use ceo@l-i-e.com 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 <rkurth@pacifier.com> Newsgroups: php.general To: php <php-general@lists.php.net> 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:rkurth@pacifier.com >

« previous php.general (#66334) next »