Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

finding which hosting account/reseller a domain belongs to thru ssh

Discussion in 'General Discussion' started by niceboy, Oct 6, 2013.

  1. niceboy

    niceboy Active Member

    Joined:
    Sep 29, 2011
    Messages:
    40
    Likes Received:
    0
    Trophy Points:
    56
    cPanel Access Level:
    Root Administrator
    Hi,

    This is the situation..

    Code:
    xxxxx <- reseller user
       |
      yyyyyy <- cpanel user account
           |
          testaddon.com <- addon domain
    
    As you can see above, we have an addon domain(testaddon.com) inside a cpanel account(yyyyyy) which belongs to a reseller customer(xxxxx)

    Now thru SSH, is there any command ( or a small script ) which takes the addon domain name and displays..
    1. which cpanel account the addon domain belongs to and
    2. under which reseller account the cpanel account/addon is created/used.

    Thanks for help.
     
  2. niceboy

    niceboy Active Member

    Joined:
    Sep 29, 2011
    Messages:
    40
    Likes Received:
    0
    Trophy Points:
    56
    cPanel Access Level:
    Root Administrator
    Please any one can help on this?
    thanks.
     
  3. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    44,303
    Likes Received:
    1,847
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Hello :)

    You can find the account ownership of a domain name with a command such as:

    Code:
    /scripts/whoowns $domain
    Or via:

    Code:
    grep $domain /etc/userdomains
    You can then search for the username in /etc/trueuserowners to see which reseller owns the account. EX:

    Code:
    grep $username /etc/trueuserowners
    Thank you.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
    luissquall likes this.
  4. niceboy

    niceboy Active Member

    Joined:
    Sep 29, 2011
    Messages:
    40
    Likes Received:
    0
    Trophy Points:
    56
    cPanel Access Level:
    Root Administrator
    Great. thanks :)
     
Loading...

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice