How is the root password read when installation of cpanel occurs?

Discussion in 'Site & Server Administration' started by BlueVM, Jun 12, 2011.

  1. #1
    How is the root password read in linux when cpanel or direct admin is installed? I've searched all over google and some linux forums and have found nothing about how to access this data via any kind of program or script or file...

    Help is greatly appreciated.
     
    BlueVM, Jun 12, 2011 IP
  2. stardust.x7

    stardust.x7 Active Member

    Messages:
    369
    Likes Received:
    3
    Best Answers:
    1
    Trophy Points:
    90
    #2
    Root password read via file when cpanel installed or, server transfer going on from one to another. If you open ticket at / tickets.cpanel.net / they will give you more specific information about that.
     
    stardust.x7, Jun 12, 2011 IP
  3. elicitservers

    elicitservers Peon

    Messages:
    714
    Likes Received:
    7
    Best Answers:
    1
    Trophy Points:
    0
    #3
    It's not hard for a script to be built to test the validity of the user/password...here's an example that may or may not work (haven't tested):
    http://www.unix.com/24328-post2.html
     
    elicitservers, Jun 12, 2011 IP
  4. BlueVM

    BlueVM Active Member

    Messages:
    213
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    55
    #4
    Does anyone know that file the root password is stored in then?
     
    BlueVM, Jun 12, 2011 IP
  5. RHS-Chris

    RHS-Chris Well-Known Member

    Messages:
    1,007
    Likes Received:
    35
    Best Answers:
    10
    Trophy Points:
    150
    #5
    The root password is not read when installing these control panels at all. When installing, you are logged in as the root user, which gives you permission to the entire server, which allows these scripts to install things where ever they need to be installed, so there is no need to read this password.

    Chris
     
    RHS-Chris, Jun 12, 2011 IP
  6. BlueVM

    BlueVM Active Member

    Messages:
    213
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    55
    #6
    Alright, that makes sense... then how does cpanel set the root password for admin login to equal the root password for the whole server? I suppose it could just check the password as if you were logining into ssh every time, but that would be kind of mundane and slightly more resource intensive wouldn't it?
     
    BlueVM, Jun 12, 2011 IP
  7. RHS-Chris

    RHS-Chris Well-Known Member

    Messages:
    1,007
    Likes Received:
    35
    Best Answers:
    10
    Trophy Points:
    150
    #7
    Hi there,

    I assume it would simply check the /etc/passwd file for the user trying to log, and if it matches, it would allow the user to enter.

    Chris
     
    RHS-Chris, Jun 12, 2011 IP