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.

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:
    425
    Likes Received:
    0
    Trophy Points:
    16
    Hello all :-

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

    Just the list or Count
     
  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
    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
     
  3. furquan

    furquan Well-Known Member

    Joined:
    Jul 27, 2002
    Messages:
    425
    Likes Received:
    0
    Trophy Points:
    16
    Thank you so very much :)
     
Loading...

Share This Page