I am trying to make a custom script that my users can use to change their password (Yes I know there is one in their cPanel too). I have done a bit of research and it looks like there is a script "chpass" in the /scripts directory that changes passwords, but I do not know how to use it since the documentation is extremely limited. I tried viewing the script, but I do not have read access to it. I also do not have execution access, so when I tried simply running the script, it obviously didn't work.

Can anyone please tell me how I would go about using this function in a php script? If anyone has any relevant links, they would also be appreciated.

Thanks,

Mike