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!
  • 4 Users Found This Useful
Was this answer helpful?

Related Articles

How to forward the website to another URL?

Forwarding the website to another URL - 1. Using index.php file - 1. Create the page as...

How to update Apache to latest version?

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

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...

How to run CGI script using any directory or /~username/cgi-bin?

If you would like to force Apache to allow CGI script then just follow below simple steps - 1....

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...

Powered by WHMCompleteSolution