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.

Password Question

Discussion in 'cPanel Developers' started by kris.x15, Nov 26, 2010.

  1. kris.x15

    kris.x15 Member

    Joined:
    Sep 20, 2010
    Messages:
    6
    Likes Received:
    0
    Trophy Points:
    1
    Is it possible to pull out password for user in cPanel when logged in as root, or password for root? In any way, using cgi/php/cp tags ?

    I'm already successfully pulling user password when authenticated as user, so I can use it for remote calls with xml (its bit twisted example, but I try to avoid livephp, and keep my logic in external, encrypted file), but i'd like to do the same when logged in as root/reseller
     
  2. cPanelDavidN

    cPanelDavidN Integration Developer
    Staff Member

    Joined:
    Dec 17, 2009
    Messages:
    571
    Likes Received:
    1
    Trophy Points:
    18
    Location:
    Houston, TX
    cPanel Access Level:
    Root Administrator
    Hi Kris,

    I'm pretty sure that the user's password is not available for extraction (the environment) if you're using the root/reseller login override.

    Regards,
    -DavidN
     
  3. kris.x15

    kris.x15 Member

    Joined:
    Sep 20, 2010
    Messages:
    6
    Likes Received:
    0
    Trophy Points:
    1
    Thanks David,
    and what about root password? Is it somehow available in cPanel when logged in as root? Via cgi/php/shell etc ?
     
  4. cPanelDavidN

    cPanelDavidN Integration Developer
    Staff Member

    Joined:
    Dec 17, 2009
    Messages:
    571
    Likes Received:
    1
    Trophy Points:
    18
    Location:
    Houston, TX
    cPanel Access Level:
    Root Administrator
    Unfortunately no, the root/reseller password is not available in the environment of the cPanel process when logged into cPanel with root/reseller override.

    Regards,
    -DavidN
     
  5. MattDees

    MattDees cPanel Product Owner
    Staff Member

    Joined:
    Apr 29, 2005
    Messages:
    417
    Likes Received:
    1
    Trophy Points:
    18
    Location:
    Houston, TX
    cPanel Access Level:
    Root Administrator
    More specifically, when a root or reseller logs into a cpanel account, we detect that within cpsrvd.pl and change the environment variable before the cpanel process is executed. This is why some parts of cPanel do break when accessed via root/reseller (see: phpMyAdmin)
     
Loading...

Share This Page