My team leader asked me to make an application through which user can change the samba server's account's password through php script.
Pls tell me how can i implement this one.
I was using the below command in my php script to change the password of linux pc through php script.
exec("echo $newpass | sudo -u root passwd --stdin $username 2>&1");
thanks !!
exec
andsudo
with password fromphp
sounds like a huge security vulnerability to me ... – simplyray Mar 27 at 23:56