By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
437,614 Members | 1,674 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 437,614 IT Pros & Developers. It's quick & easy.

running system() as root user

P: n/a
*
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.

Jul 17 '05 #1
Share this Question
Share on Google+
4 Replies


P: n/a
*** * wrote/escribió (Tue, 15 Jun 2004 11:03:32 +0100):
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.


Check "sudo". I haven't used it but it should solve your problem.

--
--
-- Álvaro G. Vicario - Burgos, Spain
--
Jul 17 '05 #2

P: n/a

"Alvaro G Vicario" <al******************@telecomputeronline.com> wrote in
message news:1p******************************@40tude.net.. .
*** * wrote/escribió (Tue, 15 Jun 2004 11:03:32 +0100):
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.


Check "sudo". I haven't used it but it should solve your problem.


Mm, Apache as a sudoer... If you get it working, post what happens, OP, I'm
morbidly curious.

Garp
Jul 17 '05 #3

P: n/a
Garp wrote:
Mm, Apache as a sudoer... If you get it working, post what happens, OP,
I'm morbidly curious.


And I sure hope there's no one else running sites on your box. The fun they
could have...

Jul 17 '05 #4

P: n/a
*
I gave up trying to do it that way. I managed to get the result I wanted by
using webmin.
"Chris Hope" <ch***@electrictoolbox.com> wrote in message
news:10*************@216.128.74.129...
Garp wrote:
Mm, Apache as a sudoer... If you get it working, post what happens, OP,
I'm morbidly curious.
And I sure hope there's no one else running sites on your box. The fun

they could have...

Jul 17 '05 #5

This discussion thread is closed

Replies have been disabled for this discussion.