{"id":21,"date":"2025-03-29T12:49:01","date_gmt":"2025-03-29T10:49:01","guid":{"rendered":"https:\/\/www.24x7serverguard.com\/blog\/?p=21"},"modified":"2025-05-08T13:47:16","modified_gmt":"2025-05-08T11:47:16","slug":"how-to-change-the-reseller-ownership-from-one-reseller-user-to-another-reseller-user-by-using-ssh","status":"publish","type":"post","link":"https:\/\/www.24x7serverguard.com\/blog\/uncategorized\/how-to-change-the-reseller-ownership-from-one-reseller-user-to-another-reseller-user-by-using-ssh\/","title":{"rendered":"How to change the reseller ownership from\u00a0one reseller user\u00a0to\u00a0another reseller user by using SSH"},"content":{"rendered":"\n<p>Sol.: If you want to change the reseller ownership means the old reseller is\u00a0<strong>\u201ctest\u201d<\/strong>\u00a0and you have created new account with the user name\u00a0<strong>\u201cindian\u201d\u00a0<\/strong>and you want to move all the domains which is under the reseller \u201ctest\u201d to \u201cindian\u201d 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.<br>Suppose :<br>Old Reseller Username =\u00a0test<br>New Reseller Username =\u00a0dubai<br>1) First you need to find out the user name which is under the old reseller ( test) account by using following command<br>cd \/var\/cpanel\/users<br><code>grep \"OWNER=test\" * -R | awk -F: '{print $1}' > user_name<\/code><br><code>cat \/var\/cpanel\/users\/user_name<br><\/code><br>It shows all the user name which is under the old reseller account.<br>2) Then create script file<br><code>vi \/var\/cpanel\/users\/test.sh<\/code><br>Then enter the follwoing code<br><code>#!\/bin\/sh<br>for user in `cat user_name`<br>do<br>\/usr\/bin\/replace 'OWNER=<strong>test<\/strong>' 'OWNER=<strong>dubai<\/strong>' -- \/var\/cpanel\/users\/$user<br>done<br>\/scripts\/updateuserdomains<\/code><br>Save the file<br>chmod 755\u00a0<code>\/var\/cpanel\/users\/test.sh<\/code><br>sh\u00a0<code>\/var\/cpanel\/users\/test.sh<\/code><br>Done<br>Now login to your new reseller account and check all the accounts.<br><strong>Note : Please replace the \u201ctest\u201d= Old reseller name and \u201cdubai\u201d= New reseller username<\/strong><\/p>\n\n\n\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Sol.: If you want to change the reseller ownership means the old reseller is\u00a0\u201ctest\u201d\u00a0and you have created new account with the user name\u00a0\u201cindian\u201d\u00a0and you want to move all the domains which is under the reseller \u201ctest\u201d to \u201cindian\u201d then you need to change the ownership of all the accounts manually by using reseller center but [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4,1],"tags":[],"class_list":["post-21","post","type-post","status-publish","format-standard","hentry","category-cpanel","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/www.24x7serverguard.com\/blog\/wp-json\/wp\/v2\/posts\/21","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.24x7serverguard.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.24x7serverguard.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.24x7serverguard.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.24x7serverguard.com\/blog\/wp-json\/wp\/v2\/comments?post=21"}],"version-history":[{"count":1,"href":"https:\/\/www.24x7serverguard.com\/blog\/wp-json\/wp\/v2\/posts\/21\/revisions"}],"predecessor-version":[{"id":22,"href":"https:\/\/www.24x7serverguard.com\/blog\/wp-json\/wp\/v2\/posts\/21\/revisions\/22"}],"wp:attachment":[{"href":"https:\/\/www.24x7serverguard.com\/blog\/wp-json\/wp\/v2\/media?parent=21"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.24x7serverguard.com\/blog\/wp-json\/wp\/v2\/categories?post=21"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.24x7serverguard.com\/blog\/wp-json\/wp\/v2\/tags?post=21"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}