If you forget the password for DirectAdmin, then follow the steps to reset your password.
check the setup.txt file for password.
[root@test]# cat /usr/local/directadmin/scripts/setup.txt
if the password in the setup.txt not works, then try to change the admin password with the following command,
[root@test]# passwd admin
Changing password for user admin.
New UNIX password:
Retype new UNIX password:
passwd: all authentication tokens updated successfully.
check the setup.txt file for password.
[root@test]# cat /usr/local/directadmin/scripts/setup.txt
if the password in the setup.txt not works, then try to change the admin password with the following command,
[root@test]# passwd admin
Changing password for user admin.
New UNIX password:
Retype new UNIX password:
passwd: all authentication tokens updated successfully.