Skip to content

How to change ALL passwords accounts into CPANEL

#! /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

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.