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!

Was this answer helpful?

 Print this Article

Also Read

How to update Apache to latest version?

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

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

Powered by WHMCompleteSolution