A
Anonymous
Guest
Hi!DeathRipple said:i have a problem: i need to execute in a php script some commands that require root access. of course this can't be done just by typing exec($cmd) since all the statements in a php file will be executed under user apache (of whatever user you have set in httpd.conf).
example:
$cmd="useradd user";
$cmd="smbpasswd -a user pass";
can anyone please help me? (if possible please give me full detals about all steps that are to be taken)
thanks
At your place i'll be create new user under Unix/Linux with permissions to create/manage users (cuted admin). But not recomended using root account to do this.