How to get a list of total cPanel users under a specific re-seller via command line – WHM/cPanel server
Yes, It’s very simple to list all cPanel users’ name via command line. There is a file ‘/etc/trueuserowners‘ in your WHM server which has cPanel username and it’s owner’s name. We can simply grep out our requirement from this file.
File which has user:owner details
List only all users under a reseller?
You can use the grep and cut command to list all users’ name from /etc/trueuserowners.
# grep $Re-seller's-name /etc/trueuserowners | cut -d : -f 1
$Re-seller’s : replace it with the re-seller name
# grep crybit /etc/trueuserowners | cut -d : -f 1 tieuwn sinwe8 crybit dewan
That’s it 🙂
check the version of your WHM/cPanel from command line
Important cPanel service’s configuration file, path, service name, port – Command line view
How to terminate/delete a cPanel account through SSH
Something more about cPanel , See the category CPANEL