You can change all the passwords of the cpanel and ftp accounts on the server by this script :

1- creat sh file with the name chpass.sh
touch chpass.sh

2- open the chpass.sh file and put this lines in it , then save it

Code:
ls -1 /var/cpanel/users | while read user; do 
pass=`</dev/urandom tr -dc "A-Za-z0-9*-/+.*=_\|\\#" | head -c16`
echo "$user $pass" >> passwords.txt
/scripts/realchpass $user $pass
/scripts/ftpupdate
done

 

3- then change the permission of the file

Code:
chmod +x chpass.sh

4- then Run the script

Code:
sh chpass.sh

this script will change all the passwords of cpanel and ftp accounts , and with creat text file with the name " passwords.txt" contains the new passwords

so after runing the script just cat the file to see the passwords

Code:
cat  passwords.txt