Search Our Database

How to move user between reseller in DirectAdmin with SSH

Last updated on |
by

DirectAdmin is a commercial webhosting control panel which brings a graphical user interface like cPanel, Plesk etc. It is the same as other control panels in which it can provide tasks such as website creation, database management, email accounts etc. Moving among reseller can be done using the SSH as in the guideline below:

Step 1: SSH to your server

Step 2: Edit /usr/local/DirectAdmin/data/users/reseller/users.list and move username from the old Reseller to the new Reseller.

Step 3: Edit /usr/local/DirectAdmin/data/users/username/user.conf for each user, and change “creator=reseller” from the old Reseller to the new one.

Step 4: Repeat this step for the /usr/local/DirectAdmin/data/users/username/domains/*.conf files for the domains, if there is a “creator=” value stored, it the value does not exist, you can skip this step.

Step 5: To update the “show all users” cache, you’ll need to run below command:

echo “action=cache&value=showallusers” >> /usr/local/directadmin/data/task.queue