#!/usr/bin/perl my ( $crypt ) = @ARGV; if ( $crypt eq "" ) { print "You must enter a password!\n"; exit 1; }; my $ret = system( "/usr/sbin/usermod", "-P", $crypt, $ENV{'SUDO_USER'}); if ( $ret ) { print "An error occured.\n"; exit 2; };