running exec as root?

This is a discussion on running exec as root? within the PHP Language forums, part of the PHP Programming Forums category; Hello exec('/sbin/ifdown eth0'); does not work, due to needing to be run as root. I need to have ...


Go Back   Usenet Forums > PHP Programming Forums > PHP Language

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 01-12-2005
Ronald Chaplin
 
Posts: n/a
Default running exec as root?

Hello

exec('/sbin/ifdown eth0');

does not work, due to needing to be run as root.
I need to have this work on a closed network environment.
any ideas, suggestions, rants, or raves ?
TFTH
--
Ron Chaplin
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
T73 Software & Design
www.t73-softdesign.com
To provide custom and quality
software, designs and services,
to our customers, at an affordable rate,
with minimal delay.
Reply With Quote
  #2 (permalink)  
Old 01-12-2005
Alvaro G. Vicario
 
Posts: n/a
Default Re: running exec as root?

*** Ronald Chaplin escribió/wrote (Wed, 12 Jan 2005 13:18:48 -0600):
> does not work, due to needing to be run as root.
> I need to have this work on a closed network environment.
> any ideas, suggestions, rants, or raves ?


Keyword: sudo

Good luck


--
-+ Álvaro G. Vicario - Burgos, Spain
+- http://www.demogracia.com (la web de humor barnizada para la intemperie)
++ Las dudas informáticas recibidas por correo irán directas a la papelera
-+ I'm not a free help desk, please don't e-mail me your questions
--
Reply With Quote
  #3 (permalink)  
Old 01-12-2005
Ronald Chaplin
 
Posts: n/a
Default Re: running exec as root?

Alvaro G. Vicario wrote:
> *** Ronald Chaplin escribió/wrote (Wed, 12 Jan 2005 13:18:48 -0600):
>
>>does not work, due to needing to be run as root.
>>I need to have this work on a closed network environment.
>>any ideas, suggestions, rants, or raves ?

>
>
> Keyword: sudo
>
> Good luck
>
>

TFTH,
I forgot about sudo.

So many commands, so little memory left :p

--
Ron Chaplin
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
T73 Software & Design
www.t73-softdesign.com
To provide custom and quality
software, designs and services,
to our customers, at an affordable rate,
with minimal delay.
Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT +1. The time now is 10:22 AM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0