finding which hosting account/reseller a domain belongs to thru ssh
Hi,
This is the situation..
As you can see above, we have an addon domain(testaddon.com) inside a cpanel account(yyyyyy) which belongs to a reseller customer(xxxxx) Now thru SSH, is there any command ( or a small script ) which takes the addon domain name and displays.. 1. which cpanel account the addon domain belongs to and 2. under which reseller account the cpanel account/addon is created/used. Thanks for help.
xxxxx <- reseller user
|
yyyyyy <- cpanel user account
|
testaddon.com <- addon domain
As you can see above, we have an addon domain(testaddon.com) inside a cpanel account(yyyyyy) which belongs to a reseller customer(xxxxx) Now thru SSH, is there any command ( or a small script ) which takes the addon domain name and displays.. 1. which cpanel account the addon domain belongs to and 2. under which reseller account the cpanel account/addon is created/used. Thanks for help.
-
Please any one can help on this? thanks. 0 -
Hello :) You can find the account ownership of a domain name with a command such as: /scripts/whoowns $domain
Or via:grep $domain /etc/userdomains
You can then search for the username in /etc/trueuserowners to see which reseller owns the account. EX:grep $username /etc/trueuserowners
Thank you.0 -
Great. thanks :) 0
Please sign in to leave a comment.
Comments
3 comments