How to move reseller users *and* the user's IP to another reseller.

Aza

Verified User
Joined
Feb 6, 2013
Messages
25
Location
Washington DC
We want to move all the user accounts sharing a single IP from one reseller account to another. Note that we're talking about moving every user account sharing a single IP and as well as moving control of the IP itself.

There is provision to select and move user accounts from one reseller to another. BUT the move is not reflected in the "IP management" table's "reseller" column.

Is the only solution to disable the sites and risk clerical errors while:
1) moving each user individually from the shared IP to a spare IP; then,
2) changing the ownership of the erstwhile shared IP when all user IPs have been changed; then,
3) moving each user individually back to the original IP that is now properly assigned to the new reseller?

That's hideously messy, so I'm hoping there is an easier way.

Aza D. Oberman
 
Is the only solution to disable the sites and risk clerical errors while:
1) moving each user individually from the shared IP to a spare IP; then,
2) changing the ownership of the erstwhile shared IP when all user IPs have been changed; then,
3) moving each user individually back to the original IP that is now properly assigned to the new reseller?

That's hideously messy, so I'm hoping there is an easier way.
That's the way I'd do it. Why is it hideously messy? If all the users on the IP# are being moved (as it appears from your post) all you need to do is run the DirectAdmin script to change one IP# to another, and then after the original IP# moved to the new reseller, and the users moved to the new reseller, change them back.

Note I've not tried this. I can do it for you as a commercial service and fix any problems which may occur, but I do NOT guarantee my posted suggestions will run without error.

Jeff
 
That's hideously messy, so I'm hoping there is an easier way.

Aza D. Oberman

Hello,

Check this:

/usr/local/directadmin/scripts/ipswap.sh

Usage:
/usr/local/directadmin/scripts/ipswap.sh <oldip> <newip> [<file>]





/usr/local/directadmin/scripts/move_user_to_reseller.sh


Usage:
/usr/local/directadmin/scripts/move_user_to_reseller.sh <user> <oldreseller> <newreseller>


The two scripts seem to be the all what you might need to achieve the desired.
 
Back
Top