RE: [PHP] exec command

From: Date: Wed, 01 Oct 2003 14:08:03 +0000
Subject: RE: [PHP] exec command
Groups: php.general 
Request: Send a blank email to php-general+get-164545@lists.php.net to get a copy of this message
From CLI or Web? You must have in mind that useradd only can be executed by root user. -----Mensaje original----- De: nabil [mailto:nabil.attar@aws-syria.com] Enviado el: miércoles, 01 de octubre de 2003 16:05 Para: php-general@lists.php.net Asunto: [PHP] exec command Importancia: Baja hi all; I want to execute #useradd -d /home/all -g wahtever -s /bin/bash newuser how can I do it ... I used exec and shell_exec and system I tried all the following but with no hope exec('useradd -d /home/all -g wahtever -s /bin/bash newuser') or die ('not done'); exec('/usr/sbin/useradd -d /home/all -g wahtever -s /bin/bash newuser') or die ('not done'); shell_exec('useradd -d /home/all -g wahtever -s /bin/bash newuser') or die ('not done'); -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

« previous php.general (#164545) next »