Sol.: If you want to change the reseller ownership means the old reseller is “test” and you have created new account with the user name “indian” and you want to move all the domains which is under the reseller “test” to “indian” then you need to change the ownership of all the accounts manually by using reseller center but you can easily change the reseller ownership by using following script.
Suppose :
Old Reseller Username = test
New Reseller Username = dubai
1) First you need to find out the user name which is under the old reseller ( test) account by using following command
cd /var/cpanel/users
grep "OWNER=test" * -R | awk -F: '{print $1}' > user_name
cat /var/cpanel/users/user_name

It shows all the user name which is under the old reseller account.
2) Then create script file
vi /var/cpanel/users/test.sh
Then enter the follwoing code
#!/bin/sh
for user in `cat user_name`
do
/usr/bin/replace 'OWNER=test' 'OWNER=dubai' -- /var/cpanel/users/$user
done
/scripts/updateuserdomains

Save the file
chmod 755 /var/cpanel/users/test.sh
sh /var/cpanel/users/test.sh
Done
Now login to your new reseller account and check all the accounts.
Note : Please replace the “test”= Old reseller name and “dubai”= New reseller username

By admin