--- loncom/lcpasswd 2000/10/30 02:31:45 1.9 +++ loncom/lcpasswd 2000/10/30 03:30:26 1.11 @@ -5,6 +5,7 @@ # Scott Harrison # SH: October 27, 2000 # SH: October 28, 2000 +# SH: October 29, 2000 use strict; @@ -49,13 +50,15 @@ use strict; # These are the exit codes. # ( (0,"ok"), # (1,"User ID mismatch. This program must be run as user 'www'"), -# (2,"Error. This program does not accept command-line arguments."), +# (2,"Error. This program needs 3 command-line arguments (username, old password, new password)."), # (3,"Error. Three lines need to be entered into standard input."), # (4,"Error. Too many other simultaneous password change requests being made."), # (5,"Error. User $username does not exist."), # (6,"Error. Invalid entry of current password."), -# (7,"Error. Root was not successfully enabled."), -# (8,"Error. Cannot open /etc/passwd.") ) +# (7,"Error. Root was not successfully enabled."), +# (8,"Error. Cannot open /etc/passwd."), +# (9,"Error. The user name specified has invalid characters."), +# (10,"Error. A password entry had an invalid character.") ) # Security $ENV{'PATH'}='/bin:/usr/bin'; # Nullify path information except for what smbpasswd needs