List all domains associated with an account from the command line
How does one list all of the domains associated with a cPanel account from the command line?
This should include the primary domain, parked domains, subdomains, addon domains, etc.
-
@Valetia Below is the command you can use to get a list of domain names created under your cPanel account. grep cPanel-username /etc/userdomains
Replace cPanel-username with actual cPanel username.0 -
Many thanks! 0 -
]Many thanks!
You are welcome :cool:0 -
You can also search for a username in /etc/trueuserowners to see which reseller owns the account. EX: grep $username /etc/trueuserowners
Thank you.0
Please sign in to leave a comment.
Comments
4 comments