User Tools

Site Tools


scripts:zimbra:dump-pw-hashes.sh
dump-pw-hashes.sh
#!/bin/bash
for i in `sudo -E -u zimbra /opt/zimbra/bin/zmprov -l gaa | egrep -v 'galsync|spam|ham|virus|stimpson' | sort`;do \
  echo "$i:`zmprov -l ga $i userPassword | grep userPassword | \
  sed 's/userPassword: //'`";\
done;
/var/www/vhost/www.fuhell.com/data/pages/scripts/zimbra/dump-pw-hashes.sh.txt · Last modified: 2014/09/01 15:00 (external edit)