Search Our Database

How to change DirectAdmin’s admin password via SSH

Last updated on |

Introduction

This guide explains how to change the admin password in DirectAdmin. It is designed for system administrators or users who already have access to their DirectAdmin control panel and wish to update their admin password. This can be useful for security purposes or to meet updated password policies.

 

Prerequisites

Before proceeding, ensure you have:

  • Access to the DirectAdmin control panel as the admin user.
  • The current admin password.
  • A new password that meets your security requirements.

 

Steps to change the admin password in DirectAdmin

1: To begin, use your SSH client to connect to the server as the root user. Ensure you have the correct SSH login credentials for the server.

ssh root@<server_ip>

 

2: You can check the login details that were generated when DirectAdmin was first installed by running one of the following commands:

cat /var/log/directadmin/install.log

or

cat /usr/local/directadmin/scripts/setup.txt

 

3: To reset the admin password, use the following command. You will be prompted to enter the new password twice. After successful entry, you will receive a confirmation message indicating that the authentication tokens have been updated:

passwd admin
Changing password for user admin. 
New UNIX password: 
Retype new UNIX password: 
passwd: all authentication tokens updated successfully.

 

Conclusion

By following these steps, you can efficiently update the DirectAdmin admin password via SSH. This process ensures that your administrative credentials remain secure and up-to-date. Always ensure that your new password is strong and unique to maintain the security of your server environment. If you encounter any issues or need further assistance, feel free to reach out for support at support@ipserverone.com

 

Article posted on 23 February 2020 by IPSERVERONE