in reply to change shell password via CGI?

If you're using shadowed passwords, see How do I modify the shadow password file on a Unix system?

But I agree with merlyn and redmist, best not to travel this road.