Drop Down MenusCSS Drop Down MenuPure CSS Dropdown Menu

Wednesday, 22 January 2014

How to change Cpanel password of all Users In the Server Via SSH

Scripts to change Cpanel password of all Users In the Server,

1)  Login to the server as root

2)  Run the following Command ,
# for i in `cat /etc/trueuserdomains | awk '{print $2}'`  ; do j=$(openssl rand -base64 10);  /scripts/chpass $i $j; echo "$i : $j" >> /root/accountdetails; done

3) That's it .. :-)

Note: This command will change all user's cpanel password instantly ,please be beware before using it.

thanks to sanju jagan for this Script. :-)

No comments:

Post a Comment