Created
January 20, 2016 23:53
-
-
Save uhlhosting/650fafff489331a5508e to your computer and use it in GitHub Desktop.
Change password for all cpanel users
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment