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:
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: admin@yourdomain.com
If you use the command line, the command to display this info is:
cat /var/log/directadmin/install.log | grep Admin
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:
passwd admin
It will allow you to set a new password.
[root@test ~]# passwd admin changing password for user admin. New password: Retype new password: passwd: all authentication tokens updated successfully.
With it, DirectAdmin will accept the password you entered and set it for your admin account.