Published on: July 14, 2015 by Arnold Pablo
There may be a requirement where you would need to change multiple account passwords in a cPanel server. This script would be of help in changing the passwords of entire accounts in cPanel.
#!/bin/bash export ALLOW_PASSWORD_CHANGE=1 for i in `cat /etc/trueuserdomains | cut -d " " -f 2`; do pass=`openssl rand -base64 128 | head -c16 | xargs` echo $i:$pass >> pass.txt /scripts/realchpass $i $pass; done; /scripts/ftpupdate
Category : cPanel, Linux, Snippets