Re: [PHP] How do I run a command as root?
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 the commande run y PHP on the server are run as the user which apache is running as ...aka www or nobody in lot's of case ... so forget running a root commande ( infac for security reason ... it's not very good :/ ) Le Lundi 2 Décembre 2002 10:44, Luke van Blerk a écrit : > Hi > > I'm trying to find out how to run a command on the server as root. Does > anybody know how to do this? > > Thanks > Luke - -- __ / Matthieu Le Corre | Service Informatique | | Inspection Academique de la Sarthe | 72000 LE MANS | | Tel : 02 43 61 58 91 | Mail : [EMAIL PROTECTED] \ -BEGIN PGP SIGNATURE- Version: GnuPG v1.0.7 (GNU/Linux) iD8DBQE960k/iQG6YxCcev4RAp5PAKCCFTNSZt53WTikYRIJSpR/2Ra84ACfR/0K nrqZuoXNcuu1GWy99XVu7fs= =Y7GA -END PGP SIGNATURE- -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] How do I run a command as root?
As your server process run as nobody or apache, you need a wrapper setuid root program that will execute the command you want, but you must be very carefull so it is not exploitable. Luke van Blerk wrote: Hi I'm trying to find out how to run a command on the server as root. Does anybody know how to do this? Thanks Luke -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] How do I run a command as root?
Hi Luke, > I'm trying to find out how to run a command on the > server as root. Does anybody know how to do this? How about using a combination of exec() and sudo (assuming you're in the sudoers file, that is)? Cheers Jon -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] How do I run a command as root?
On Monday 02 Dec 2002 10:47 am, Luke van Blerk wrote: > Hi > > I'm trying to find out how to run a command on the server as root. Does > anybody know how to do this? > su root password: your_root_password then run your command This is a php list not a *nix list John -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] How do I run a command as root?
Hi I'm trying to find out how to run a command on the server as root. Does anybody know how to do this? Thanks Luke
[PHP] How do I run a command as root?
Hi I'm trying to find out how to run a command on the server as root. Does anybody know how to do this? Thanks Luke -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php