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

furquan

Well-Known Member
Jul 27, 2002
473
4
168
Hello all :-

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

Just the list or Count
 

cPanelTristan

Quality Assurance Analyst
Staff member
Oct 2, 2010
7,607
40
248
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:
[email protected] [/]# 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:
[email protected] [/]# grep -v 'root\|#' /etc/trueuserowners
bobby: cpfoo
cpfoo: cpfoo
happy: cpfoo
 

furquan

Well-Known Member
Jul 27, 2002
473
4
168
Thank you so very much :)