From f1981b0254f14ec4aa1edbca456d6097d84d26f1 Mon Sep 17 00:00:00 2001 From: megacz Date: Tue, 9 Oct 2007 19:56:47 +0000 Subject: [PATCH 1/1] improve change-user-password script --- change-user-password | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/change-user-password b/change-user-password index 4a321f2..f313f8b 100755 --- a/change-user-password +++ b/change-user-password @@ -10,12 +10,12 @@ USER=$1 sudo rm -f /tmp/kadmin.out sudo kadmin.local -p root/admin -q "cpw $USER@HCOOP.NET" \ 2>&1 | tee /tmp/kadmin.out -cat /tmp/kadmin.out | grep 'is too short while changing' && \ +cat /tmp/kadmin.out | grep '\(is too short while changing\|does not contain enough\)' && \ (echo == sending complaint to $USER@hcoop.net ====================================================;\ echo 'please change it' |\ mail -a 'From: Adam Megacz ' \ -c admins@hcoop.net \ - -s "your ~/.mire-password is too short" $USER@hcoop.net) || \ + -s "your ~/.mire-password is too short or not complex enough" $USER@hcoop.net) || \ true cat /tmp/kadmin.out | grep '\(Password for .* changed\|Cannot reuse password while changing password\)' sudo rm -f /tmp/kadmin.out -- 2.20.1