Search Our Database

How to change DirectAdmin username

Last updated on |
by

If you are the administrator of your server’s DirectAdmin, and you have a client that requesting to change their DirectAdmin username, here is an easy way to do it whereby using the existing DirectAdmin change username script.

1.) First SSH into the server and go to the directory as below:

cd /usr/local/directadmin/scripts/

2.) Then run the username changing script.

./change_username.sh olduser newuser

*replacing old users with the current username that you wish to change and replacing new users with the new username that you wish to replace it.

3.) After changing the username, the MySQL database prefix name will also be changed to the same as the new username. Users will have to update their web applications’ database configuration to the new database name.