#! /bin/bash # auther: saleh souzanchi(github.com/zoghal) export ALLOW_PASSWORD_CHANGE=1 ls -1 /var/cpanel/users | while read user; do echo "START: $user " pass=`</dev/urandom tr -dc "!@#$&A-Za-z0-9" | head -c16` echo "$user $pass" >> passwords.txt /scripts/realchpass $user $pass /scripts/mysqlpasswd $user $pass /scripts/ftpupdate echo "END: $user " echo "-------------------------------------------------------------" done
Thanks github.com/zoghal
