mustafaramadhan
Hosting Guru
1. Pastikan 'disable_functions' tidak termasuk 'exec', 'shell_exec' atau 'system'boleh bantu methodnya mas ? gambarannya ? atau cotnohnya yang simple aja ?
jalankan di web
2. Anda bisa lihat bagaimana menambah user dengan 'useradd --help'
3. Contoh code php adalah:
Code:
<?php
$comment=''; // comment
$homedir = '/home/mustafa'; // directory
$shellexec = '/bin/bash'; // want ssh access
$password = 'password'; // password
$user = 'mustafa'; // username
exec("useradd -m -c $comment -d $homedir -s $shellexec -p $password $user", $put, $ret);