Displaying 1 result from an estimated 1 matches for "sysmail".
Did you mean:
sysmain
2006 Dec 12
1
changing password only works the second time?
.../align_pwd.sh %u
passwd chat = *New*password* %n\n *Retype*new*password* %n\n *passwd:*all*auth
entication*tokens*updated*successfully*
There is a custom script align_pwd.sh that makes some things when
changing password.
The script is this:
#!/bin/bash
USER=$1
LOGFILE=/tmp/${USER}_pwdchange.log
SYSMAIL="our_mail@our_mail_domain"
export USER LOGFILE SYSMAIL
echo "New password"
read newpwd1
echo "Retype new password"
read newpwd2
if [ "$newpwd1" != "$newpwd2" ]
then
echo "Sorry, passwords do not match" > $LOGFILE
exit 1...