Page 1 of 2

Transferring web, dns & db to different user account.

Posted: Sun Feb 15, 2015 10:46 pm
by TopeZ
Hello all,

Linux n00b here I recently switched from ZPanel (Windows) to VestaCP (Ubuntu). Loving it so far! Unfortunately though I made a mistake and put all 4 of web & dns domains + 2 dbs under 1 user account.

Is there anyway I can separate and transfer them into newly created user accounts? I saw in the roadmap there is scripts for doing the following:

Domain transfer to another user account
Database transfer to another user account

Now I saw the scripts \ CLI Commands... However I want advice or guidance before I move forward and break things...

Thanks!

Re: Transferring web, dns & db to different user account.

Posted: Wed Feb 18, 2015 2:04 am
by joem
TopeZ wrote:Hello all,

Linux n00b here I recently switched from ZPanel (Windows) to VestaCP (Ubuntu). Loving it so far! Unfortunately though I made a mistake and put all 4 of web & dns domains + 2 dbs under 1 user account.

Is there anyway I can separate and transfer them into newly created user accounts? I saw in the roadmap there is scripts for doing the following:

Domain transfer to another user account
Database transfer to another user account

Now I saw the scripts \ CLI Commands... However I want advice or guidance before I move forward and break things...

Thanks!

Code: Select all

v-change-domain-owner {DOMAIN} {NEWUSERNAME}

Re: Transferring web, dns & db to different user account.

Posted: Sat Feb 21, 2015 3:41 pm
by Tralapo
joem wrote:

Code: Select all

v-change-domain-owner {DOMAIN} {NEWUSERNAME}
Are you sure this code is still actual? I tried this, but I get:

Code: Select all

v-change-domain-owner: command not found

Re: Transferring web, dns & db to different user account.

Posted: Mon Feb 23, 2015 6:00 pm
by TopeZ
joem wrote:
TopeZ wrote:Hello all,

Linux n00b here I recently switched from ZPanel (Windows) to VestaCP (Ubuntu). Loving it so far! Unfortunately though I made a mistake and put all 4 of web & dns domains + 2 dbs under 1 user account.

Is there anyway I can separate and transfer them into newly created user accounts? I saw in the roadmap there is scripts for doing the following:

Domain transfer to another user account
Database transfer to another user account

Now I saw the scripts \ CLI Commands... However I want advice or guidance before I move forward and break things...

Thanks!

Code: Select all

v-change-domain-owner {DOMAIN} {NEWUSERNAME}
This worked like a charm and everything is working just fine after moving the usernames to a new account! Thanks!
Tralapo wrote:
joem wrote:

Code: Select all

v-change-domain-owner {DOMAIN} {NEWUSERNAME}
Are you sure this code is still actual? I tried this, but I get:

Code: Select all

v-change-domain-owner: command not found
Yes I can confirm this works, just fine as I have used it and moved over 4 different web domains to 4 different user accounts.

Make sure you are using the latest VestaCP perhaps?

Re: Transferring web, dns & db to different user account.

Posted: Tue Feb 24, 2015 10:55 am
by Tralapo
TopeZ wrote:
Tralapo wrote:
joem wrote:

Code: Select all

v-change-domain-owner {DOMAIN} {NEWUSERNAME}
Are you sure this code is still actual? I tried this, but I get:

Code: Select all

v-change-domain-owner: command not found
Yes I can confirm this works, just fine as I have used it and moved over 4 different web domains to 4 different user accounts.

Make sure you are using the latest VestaCP perhaps?
I am. I am using the latest Ubuntu LTS and everything is updated. Those commands never worked for me I should say, none of them to be precise. Maybe it's an Ubuntu thing then?

Re: Transferring web, dns & db to different user account.

Posted: Fri Feb 27, 2015 10:02 am
by joem
Tralapo wrote: I am. I am using the latest Ubuntu LTS and everything is updated. Those commands never worked for me I should say, none of them to be precise. Maybe it's an Ubuntu thing then?
Can you provide us with the exact command your typing in.

Re: Transferring web, dns & db to different user account.

Posted: Mon Mar 02, 2015 12:19 pm
by Tralapo
joem wrote:
Tralapo wrote: I am. I am using the latest Ubuntu LTS and everything is updated. Those commands never worked for me I should say, none of them to be precise. Maybe it's an Ubuntu thing then?
Can you provide us with the exact command your typing in.
Well, just as it's posted in all previous posts.

Re: Transferring web, dns & db to different user account.

Posted: Mon Mar 02, 2015 9:57 pm
by joem
Tralapo wrote:
joem wrote:
Tralapo wrote: I am. I am using the latest Ubuntu LTS and everything is updated. Those commands never worked for me I should say, none of them to be precise. Maybe it's an Ubuntu thing then?
Can you provide us with the exact command your typing in.
Well, just as it's posted in all previous posts.
Well thats your problem.

Re: Transferring web, dns & db to different user account.

Posted: Thu Mar 03, 2016 7:58 pm
by alexandremg85
for this error
v-change-domain-owner: line 36: v-search-domain-owner: command not found

change line 36 to this
owner=$($BIN/v-search-domain-owner $domain)

just add BIN variable.

Re: Transferring web, dns & db to different user account.

Posted: Fri Feb 17, 2017 4:18 am
by plutocrat
Also had to do a

Code: Select all

v-change-database-owner databasename targetuser
Then set a password in the Vesta interface
Then update the web config (eg wordpress) to use the new details.