X-Git-Url: http://git.hcoop.net/clinton/scripts.git/blobdiff_plain/f1981b0254f14ec4aa1edbca456d6097d84d26f1..3a9bd77a91c7228ac90171603a9260337a9e9bfb:/change-user-password diff --git a/change-user-password b/change-user-password index f313f8b..b011c1f 100755 --- a/change-user-password +++ b/change-user-password @@ -1,4 +1,6 @@ -#!/bin/bash -ex +#!/bin/bash -e + +# disable debug !/bin/bash -ex # # Finally, set password for main user's principal # Aborting this operation is harmless. Just re-invoke cpw. @@ -13,7 +15,7 @@ sudo kadmin.local -p root/admin -q "cpw $USER@HCOOP.NET" \ 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 ' \ + mail -a 'From: HCoop Admins ' \ -c admins@hcoop.net \ -s "your ~/.mire-password is too short or not complex enough" $USER@hcoop.net) || \ true