Move a Domain to Another User in VestaCP

To move a domain to another user when using VestaCP, simply use this command:

sudo /usr/local/vesta/bin/v-change-domain-owner example.com new_username

You have to replace example.com by the desired domain name and new_username by the name of the new user.

The code example above is extracted from Ubuntu 18.04 – the path may be different when using another linux distribution.