470,862 Members | 1,855 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 470,862 developers. It's quick & easy.

running system() as root user

*
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
4 2376
*** * 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

"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
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
*
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.

Similar topics

5 posts views Thread by jn | last post: by
reply views Thread by paulhjwu | last post: by
4 posts views Thread by news.citenet.net | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.