Changes every cPanel password on the server and stores the credentials in ~/newCredentials
$newPassword is a randomly generated password with 10 characters
#!/bin/bash
export ALLOW_PASSWORD_CHANGE=1
ls -la /home | awk '{print $3}' | grep -v root | grep -v wheel | grep -v cpanel | grep -v apache | grep -v csf | grep -v '^$' > /tmp/usersforchpass
for i in `more /tmp/usersforchpass `
do
newPassword='Ahley@'$(</dev/urandom tr -dc 'A-Za-z0-9' | head -c6)'#74'
echo "Host/IP|$i|$newPassword" >> ~/cpanel.txt
echo "" >> ~/newCredentials
/scripts/chpass $i $newPassword
/scripts/mysqlpasswd $i $newPassword
done


![node[175421]: pthread_create: Resource temporarily unavailable 2023 08 28 12 15 - node[175421]: pthread_create: Resource temporarily unavailable](https://i0.wp.com/administrator.pejcic.rs/wp-content/uploads/2023/08/2023-08-28_12-15.png?resize=344%2C194&ssl=1)
