Today, a few of the resellers of one of our client had an issue where the “List Accounts” option in WHM fails to show any of their accounts. I had to spend around 15 minutes to figure out the issue. Not so tough, but haven’t seen the issue for a while. So here is what I did. I am including the command here and I leave it to your guys to understand the steps and take risks
You are at your risk, because each step is dependent on the result of previous step.
ls -l /var/cpanel/reseller_username.accts
grep OWNER=reseller_username /var/cpanel/users/*
mv /etc/trueuserowners /etc/trueuserowners.bak
/scripts/updateuserdomains
/scripts/updateuserdomains
ls -l /etc/trueuserowners
diff /etc/trueuserowners /etc/trueuserowners.bak
ls -l /var/cpanel/reseller_username.accts
rm /var/cpanel/reseller_username.accts
And now access the resellers’ WHM and all the accounts should be there. If it is still not there, add it manually. How ? by using the “Fetch CSV” option and manually adding those reseller’s account details to /var/cpanel/reseller_username.accts file. But remember you are messing up with a cPanel file directly and don’t blame me, if it gets overridden.
Continue Reading