The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Does cpanel use md5 or sha-512 for password encryption?

Discussion in 'Security' started by BianchiDude, Oct 28, 2012.

  1. BianchiDude

    BianchiDude Well-Known Member
    PartnerNOC

    Joined:
    Jul 2, 2005
    Messages:
    619
    Likes Received:
    0
    Trophy Points:
    16
    Does cpanel use md5 or sha-512 for password encryption?

    My shadow files appear to contain some of each.
     
  2. cPanelTristan

    cPanelTristan Quality Assurance Analyst
    Staff Member

    Joined:
    Oct 2, 2010
    Messages:
    7,623
    Likes Received:
    21
    Trophy Points:
    38
    Location:
    somewhere over the rainbow
    cPanel Access Level:
    Root Administrator
    The passwords are stored in /etc/shadow location, since the users are stored in /etc/passwd and the groups in /etc/group files on Linux. Which file are you checking for the encryption type?
     
  3. BianchiDude

    BianchiDude Well-Known Member
    PartnerNOC

    Joined:
    Jul 2, 2005
    Messages:
    619
    Likes Received:
    0
    Trophy Points:
    16
    /etc/shadow
    /home/user/etc/domain/shadow
    and
    /etc/proftpd/passwd.vhosts
     
    #3 BianchiDude, Oct 28, 2012
    Last edited: Oct 28, 2012
  4. cPanelTristan

    cPanelTristan Quality Assurance Analyst
    Staff Member

    Joined:
    Oct 2, 2010
    Messages:
    7,623
    Likes Received:
    21
    Trophy Points:
    38
    Location:
    somewhere over the rainbow
    cPanel Access Level:
    Root Administrator
    The /etc/shadow file encryption is that used by Linux itself. This is not a cPanel-specific file.

    The /etc/proftpd/passwd.vhosts file is that used by pure-ftpd or proftpd services and uses the encryption type those services use.

    The /home/user/etc/domain/shadow file is ours for maildir for Dovecot or IMAP.

    Each are entirely different services with different purposes. Why precisely are you trying to do? Knowing that would be helpful in proceeding.
     
  5. cPanelNick

    cPanelNick Administrator
    Staff Member

    Joined:
    Mar 9, 2015
    Messages:
    3,426
    Likes Received:
    2
    Trophy Points:
    38
    cPanel Access Level:
    DataCenter Provider
    11.34 will use sha512, sha256, or md5 based on what you have configured at /etc/sysconfig/authconfig
     
Loading...

Share This Page