*** * wrote/escribió (Tue, 15 Jun 2004 11:03:32 +0100):[color=blue]
> Is there a way that I can run the system() command as a root user. Need to
> restart network services on a server via php.[/color]
Check "sudo". I haven't used it but it should solve your problem.
"Alvaro G Vicario" <alvaro_QUITAR_ REMOVE@telecomp uteronline.com> wrote in
message news:1ppb9hqgau 6a6$.1rkm3gyx40 xls.dlg@40tude. net...[color=blue]
> *** * wrote/escribió (Tue, 15 Jun 2004 11:03:32 +0100):[color=green]
> > Is there a way that I can run the system() command as a root user. Need[/color][/color]
to[color=blue][color=green]
> > restart network services on a server via php.[/color]
>
> Check "sudo". I haven't used it but it should solve your problem.[/color]
Mm, Apache as a sudoer... If you get it working, post what happens, OP, I'm
morbidly curious.
I gave up trying to do it that way. I managed to get the result I wanted by
using webmin.
"Chris Hope" <chris@electric toolbox.com> wrote in message
news:1087339013 _6554@216.128.7 4.129...[color=blue]
> Garp wrote:
>[color=green]
> > Mm, Apache as a sudoer... If you get it working, post what happens, OP,
> > I'm morbidly curious.[/color]
>
> And I sure hope there's no one else running sites on your box. The fun[/color]
they[color=blue]
> could have...
>[/color]
Comment