Re: [PHP] Getting root privs

2010-05-01 Thread Shawn McKenzie
On 04/30/2010 09:53 AM, Nilesh Govindarajan wrote: > That was what my basic idea about implementing it, but just put up a > discussion here to see if there is really any other method except sudo- > and there is that cron one as suggested by Jim Lucas. > Use the sudoers file to allow your apache u

Re: [PHP] Getting root privs

2010-04-30 Thread Ashley Sheridan
On Fri, 2010-04-30 at 20:23 +0530, Nilesh Govindarajan wrote: > On 04/30/2010 08:12 PM, Ashley Sheridan wrote: > > On Fri, 2010-04-30 at 10:40 -0400, Paul M Foster wrote: > > > >> On Fri, Apr 30, 2010 at 12:11:17PM +0530, Nilesh Govindarajan wrote: > >> > >>> On 04/30/2010 11:26 AM, Jim Lucas wrot

Re: [PHP] Getting root privs

2010-04-30 Thread Nilesh Govindarajan
On 04/30/2010 08:12 PM, Ashley Sheridan wrote: On Fri, 2010-04-30 at 10:40 -0400, Paul M Foster wrote: On Fri, Apr 30, 2010 at 12:11:17PM +0530, Nilesh Govindarajan wrote: On 04/30/2010 11:26 AM, Jim Lucas wrote: Nilesh Govindarajan wrote: Hi, As you know there are lot of control panels ly

Re: [PHP] Getting root privs

2010-04-30 Thread Nilesh Govindarajan
On 04/30/2010 08:10 PM, Paul M Foster wrote: On Fri, Apr 30, 2010 at 12:11:17PM +0530, Nilesh Govindarajan wrote: On 04/30/2010 11:26 AM, Jim Lucas wrote: Nilesh Govindarajan wrote: Hi, As you know there are lot of control panels lying around like Cpanel, Lxadmin, most of them based on PHP.

Re: [PHP] Getting root privs

2010-04-30 Thread Ashley Sheridan
On Fri, 2010-04-30 at 10:40 -0400, Paul M Foster wrote: > On Fri, Apr 30, 2010 at 12:11:17PM +0530, Nilesh Govindarajan wrote: > > > On 04/30/2010 11:26 AM, Jim Lucas wrote: > >> Nilesh Govindarajan wrote: > >>> Hi, > >>> > >>> As you know there are lot of control panels lying around like Cpanel,

Re: [PHP] Getting root privs

2010-04-30 Thread Paul M Foster
On Fri, Apr 30, 2010 at 12:11:17PM +0530, Nilesh Govindarajan wrote: > On 04/30/2010 11:26 AM, Jim Lucas wrote: >> 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 editi

Re: [PHP] Getting root privs

2010-04-29 Thread Nilesh Govindarajan
On 04/30/2010 11:26 AM, Jim Lucas wrote: 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 roo

Re: [PHP] Getting root privs

2010-04-29 Thread Jim Lucas
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 s

[PHP] Getting root privs

2010-04-29 Thread Nilesh Govindarajan
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