Hi,
I need to be able to change the users' password through a web page (in a controlled environment). So, for that, I'm using this code:
<?php
$output = shell_exec("sudo -u dummy passwd testUser testUserPassword");
$output2 = shell_exec("dummyPassword");
echo $output;
echo $output2;
echo "done";
?>
My problem is that this script is not changing the password for the user "testUser". What am I doing wrong?
Thanks