Get a List of cPanel User under specific Reseller Via Command Line

Get a List of cPanel User under specific Reseller Via Command Line

Do you want to list all the cpanel user under a reseller? If you want to do this with command line then you have to make some changes in “/etc/trueuserowners” file. This file contains all the cpanel username and the account’s owner details. In this file you can find all the detailed information, now you just have to grep it through command. In this article we are going to discuss about the way to list all users under a reseller account. You have to use below commands:

File to list User owner details

Code:
/etc/trueuserowners
List all user under your Reseller account :

1) SSH to your server as a root user

2) You can use grep command and cut command to list all usernames from the file "/etc/trueuserowners".

3) Now use grep command to which help you to list all the usernames. Run the below command:

Code:
# grep $Reseller-name /etc/trueuserowners | cut -d : -f 1
You have to replace $Reseller to reseller’s account name.

Example:
If you have any confusion then you can check the below example:

Code:
# grep hoststud /etc/trueuserowners | cut -d : -f 1
Author
bhawanisingh
Views
4,439
First release
Last update
Rating
0.00 star(s) 0 ratings
Top