Can any one help me to write a web based LINUX user's password changing program
Try this, but don't expect any of us to write your code. You do it yourself and ask specific question(s) when stuck.
http://phpclasses.UpperDesign.com/browse.html/package/222