1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Change a Root Cpanel Password via SSH

Discussion in 'Security' started by reverbstudios, Feb 16, 2010.

  1. reverbstudios

    reverbstudios New Member

    Joined:
    Feb 16, 2010
    Messages:
    1
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    Leitrim, Ireland
    I've been told I need to do this as the normal function to do it in cpanel doesn't seem to work for some reason. I've no idea what the command might be and can't seem to find any info. I'm using Putty.
     
  2. cPanelDon

    cPanelDon cPanel Quality Assurance Analyst
    Staff Member

    Joined:
    Nov 5, 2008
    Messages:
    2,558
    Likes Received:
    6
    Trophy Points:
    38
    Location:
    Houston, Texas, U.S.A.
    The following command may be used to set or change a password via SSH access:
    Code:
    # passwd
    For usage information please reference the official manual "man" page and help information by using the following commands:
    Code:
    # man passwd
    # passwd --help
    To help diagnose and troubleshoot the difficulty, please let us know the following information, (numbered for clarity):
    1.) What is the full cPanel version and build number of the system where there is difficulty changing the root password?
    2.) Was root access to WHM used to attempt the password change or was a different method used?
    3.) What testing method and steps were used to determine if the password change was successful or if it failed?

    To obtain the full cPanel version and build number may be obtained using the following command via SSH access:
    Code:
    # cat /usr/local/cpanel/version && echo
     

Share This Page