Web Designing, Web Development, Website Design, Website Development, SEO

0091 98233 72069

COGS: CUSTOMISED, OPTIMISED, GENERALISED WEB DESIGN & WEB DEVELOPMENT SOLUTIONS

Reset cPanel Account Passwords from Command Line

  1. Log into your server via SSH Terminal as the root user.
    • ssh root@<yourserversip> -p 2200
  2. You’ll need to enable the allow password change option, by exporting it. Type or copy and paste the following command:
    • export ALLOW_PASSWORD_CHANGE=1
  3. Then run the cPanel chpass script with the cPanel account name and new password:
    • /scripts/chpass username newpassword
    • username is the cPanel account name and newpassword is the new password being assigned. Remember to use a secure, randomly generated password.
  4. You’ll see a ‘warning’ and confirmation of the password change.
    • warn [realchpass] Insecure passing of password on ARGV.
      Password for “username” has been changed.