How to transfer domain to a different user?

jim.thornton

Verified User
Joined
Jan 1, 2008
Messages
334
Is there an "easy" way to switch the domain from one user account over to a different user account?

As part of an account that i setup, I have 10 domains in there. I would like to create a new user and switch this domain to the new user.
 
Code:
cd /usr/local/directadmin/scripts[FONT=monospace]
[/FONT]./move_domain.sh <domain> <olduser> <newuser>
 
Sorry about the thread necromancy but I do have a relevant question

does this script migrate everything (web files, databases, emails, logs, etc)? does it also properly chown the files?
 
Short answer: yes, except for databases

Longer answer: Renaming databases would break them, so technically databases (which get their ownership from their names and not from their chown settings) will belong to the old user. Why? Because changing database names will break all code that uses the database. You'll have to do it manually if you need to change them.

More detailed answer: not much get's moved. Locatons inside Directadmin severs is not based on ownership; the files stay in the same place but references get changed.

Jeff
 
Back
Top