Knowledge Base
MilesWeb / DirectAdmin, How-Tos

How to Change Password for Admin Account of DirectAdmin?

Approx. read time : 2 min

The password for your admin account of DirectAdmin is the most vital piece of your server security. It is expected that you shouldn’t lose, share or forget it.

To Find the Password for Admin Account

In case you forgot the admin password, you can always find it here:

/var/log/directadmin/install.log

The section where you will spot the password will look like this:

The following information has been set:

Admin username: admin
Admin password: c0pr7hwvt8f-
Admin email: [email protected]

If you use the command line, the command to display this info is:

 

Note: The password you will find this way is actually the one you get after the DirectAdmin installation. It will only be valid if you have not changed it.

However, if you forget the password after changing it from the one you got from installation, you will have to reset it.

To Reset/Change the Password

Access your server as root and enter this line:

It will allow you to set a new password.

With it, DirectAdmin will accept the password you entered and set it for your admin account.

Prasad Khartadkar
Prasad is a business grad specialized in Marketing. He has garnered experience as a technical content writer and a digital marketer that he brings out in his work. He likes reading classics and travel in his free time.
Need help? We’re always here for you.