How to retrieve and reset directadmin password from the SSH? Print

  • 1

Today, we will guide you on how to retrieve and reset the DirectAdmin password from the SSH.

 

Steps to retrieve DirectAdmin password

 

  1. Login to VPS or dedicated server with root user through SSH.

  2. Execute the following command to get the admin pass.

    # cat /var/log/directadmin/install.log

    OR

    # cat /usr/local/directadmin/scripts/setup.txt | grep adminpass

    Important: The above steps will be useful if you have just installed the DirectAdmin control panel on your server and you have closed the window without saving the login details in your local system. Once you change the password through the DirectAdmin control panel or ssh, you can't log in to it with the details mentioned in this file.

Steps to reset the direct admin password

 

  1. Login to your Linux VPS or dedicated with root user through SSH.

  2. Execute the following command in the terminal to reset the password of the admin user.

    # passwd admin

  3. It will ask you to enter a new password.

  4. Once it is successfully changed, you will get a message on the screen "all authentication tokens updated successfully". It means that the password is successfully updated. That's all.


Was this answer helpful?

« Back
Sign up for a newsletter

chat