Re: Getting root privs

From: Date: Fri, 30 Apr 2010 05:56:20 +0000
Subject: Re: Getting root privs
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-304765@lists.php.net to get a copy of this message
Nilesh Govindarajan wrote: > Hi, > > As you know there are lot of control panels lying around like Cpanel, > Lxadmin, most of them based on PHP. The control panels allow editing of > system files which requires root privileges, can somebody tell me how to > gain root privileges inside the script so that it can be useful if I > want to give my users a DNS editing interface instead of loading a big > bloated control panel. > We use an interface that writes everything to a DB. Then, every 5 minutes, a cron job comes around and dumps the db and builds the zone files for us. Might try something similar. It would be a lot safer then giving root access via PHP... :) -- Jim Lucas "Some men are born to greatness, some achieve greatness, and some have greatness thrust upon them." Twelfth Night, Act II, Scene V by William Shakespeare

« previous php.general (#304765) next »