rndcppw

All software on this website is free software. If you find value in any of my projects or technical articles, please consider a donation to ensure continued development and updates.


Summary

Server hacked? Or just want to mass change cPanel user, FTP user, or email account passwords? Then this script will be useful for you on cPanel servers as it automates this process entirely.

Installation:


CentOS/RHEL:


if [ ! -f '/etc/yum.repos.d/ssullivanorg.repo' ] ; then
  cat << 'EOF' > /etc/yum.repos.d/ssullivanorg.repo 
[ssullivanorg-generic_noarch]
name=Generic packages
baseurl = http://repos.ssullivan.org/redhat/generic/noarch/
enabled=1
gpgcheck=0
EOF
  fi
yum clean all
yum install rndcppw
  

Usage

Randomizing cPanel Passwords:


rndCpPw --cpuser all --pwlength 10 --- Sets all cPanel accounts to random 10 character password.
rndCpPw --cpuser cPanelAccount --pwlength 10 --- Sets specified cPanel account to random 10 character password.
Randomizing email passwords:

rndCpPw --mailbox all --pwlength 10 --- Randomize all email account passwords to 10 random character password for all cPanel accounts. 
rndCpPw --mailbox cPanelAccount --pwlength 10 --- Randomizes all email accounts under cPanelAccount to random 10 character password.
rndCpPw --mailbox cPanelAccount --pwlength 10 --singlemailbox user@domain.com --- Randomizes user@domain.com to random 10 character password.
Randomizing FTP passwords:

rndCpPw --ftp all --pwlength 10 --- Randomize all FTP account passwords for all cPanel accounts to random 10 character password. 
rndCpPw --ftp cPanelAccount --pwlength 10 --- Randomizes all FTP accounts under cPanelAccount to random 10 character password.

Feature Requests/Bug Reports

Please send feature requests and bug reports to scottgregorysullivan at gmail.com. Or, open an issue on GitHub.