Changing user for web and database is very simple in Vesta Cpanel, Only we have to run some command and thats it.

So, here is the command by which we can change the User for web and database in Vesta Cpanel.

for changing user for Web

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

For Changing user for Database
v-change-database-owner databasename targetuser

Note :– If you found “Command Not Found Error” you can run the command by providing full command /usr/local/vesta/bin/<command-name>

e.g :-
/usr/local/vesta/bin/v-change-domain-owner {DOMAIN} {NEWUSERNAME}

or

/usr/local/vesta/bin/ v-change-database-owner databasename targetuser