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

Reply via email to