in reply to change shell password via CGI?

You don't want to do that.

You really really really don't want to do that. On many levels.

-- Randal L. Schwartz, Perl hacker