actually, i am not sure if the best way to change a linux system password using the web is a script. i don't know if there are other ways of doing it other than using php scripts.
this is what i wanted to do. i have an ftp server and i want the ftp users to be able to change their passwords.
if there are some things you can share about this, like the threats, the disadvantages, please feel free to post.