How to reset and retrieve directadmin admin password using shell?

Steps to reset the direct admin password -

1. Login to SSH with root user -
#passwd admin

2. This will ask you new password provide new password.

3. Now, directadmin password has been reset and I am able to login to directadmin panel with new password.

Steps to retrieve directadmin password -

1. Login to server via SSH.

2, There is a file ‘/usr/local/directadmin/scripts/setup.txt‘ which containing the control panels details.

2. Execute the following command to get adminpass -
# cat /usr/local/directadmin/scripts/setup.txt | grep adminpass

That's it!
  • 0 Users Found This Useful
Was this answer helpful?

Related Articles

How to upgrade mysql with custombuild 2.0?

Before doing any updates of MySQL be sure to create full backups of all databases.Steps to...

How to upgrade the php from 5.4 to 5.6?

If you are running php 5.4 on the server and want it to be upgraded to 5.6 . Additionally, your...

MySql Database has gone away

You may come across the error "MySql Database has gone away". I came across this error while...

How to update Direct Admin skin to Evolution Theme?

Here are very simple steps to update the DIRECT ADMIN skin to the Evolution Theme - 1. cd...

How to update Apache to latest version?

Steps to update Apache to latest version -1. Please check the current version of Apache using...

Powered by WHMCompleteSolution