krang_passwd - change Krang user passwords
krang_password [options] login
Change the password for userX:
$ krang_passwd userX New password: Re-type password:
Options:
--help - Displays this menu.
--man - Displays POD for entire script as manpage.
N.B.: passwords must be at least 6 characters in length.
This script changes the password for a Krang user. Note: passwords must be at least 6 characters in length.
main()
A user object corresponding to 'login' is obtained, a new password is obtained and saved to the user object. 'Password changed.' is printed if the process is a success.
ask_pass()
Attempts to obtain a valid new password. Returns new password on success exits otherwise.
set_echo()
Turns Termios echoing on if supplied an arg, off otherwise