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!

Get a list of Resellers and the accounts associated with them ?

Discussion in 'General Discussion' started by furquan, Aug 2, 2011.

  1. furquan

    furquan Well-Known Member

    Joined:
    Jul 27, 2002
    Messages:
    471
    Likes Received:
    4
    Trophy Points:
    168
    Hello all :-

    How can we get a list of ONLY Resellers and the accounts associated with them ?

    Just the list or Count
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  2. cPanelTristan

    cPanelTristan Quality Assurance Analyst
    Staff Member

    Joined:
    Oct 2, 2010
    Messages:
    7,608
    Likes Received:
    32
    Trophy Points:
    238
    Location:
    somewhere over the rainbow
    cPanel Access Level:
    Root Administrator
    This will provide a list of the accounts owned by a reseller:

    Code:
    grep -v 'root\|#' /etc/trueuserowners
    To see a comparison of the results on my machine:

    1. Default /etc/trueuserowners file

    Code:
    root@host [/]# cat /etc/trueuserowners
    #userowners v1
    bobby: cpfoo
    cpfoo: cpfoo
    jeff-com: root
    danielle: root
    happy: cpfoo
    tristan: root
    2. List of reseller owned accounts only (excluding root and initial line of the file)

    Code:
    root@host [/]# grep -v 'root\|#' /etc/trueuserowners
    bobby: cpfoo
    cpfoo: cpfoo
    happy: cpfoo
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  3. furquan

    furquan Well-Known Member

    Joined:
    Jul 27, 2002
    Messages:
    471
    Likes Received:
    4
    Trophy Points:
    168
    Thank you so very much :)
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
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