http://www.perlmonks.org?node_id=908703


in reply to Re^2: change unix password with cgi-script
in thread change unix password with cgi-script

This should handle the mechanics of updating the shadow file for you:

system "/usr/sbin/usermod" => "--password", $cryptedShadowString, $benutzername;

Good Day,
    Dean