Search Our Database

How to change DirectAdmin’s admin password from SSH

Last updated on |
by

If you have the SSH access to your server, you can change the DirectAdmin’s admin password from the backend.

 

Step 1: SSH into the server

1. You can check the login details when DirectAdmin was first installed by using the command below:

cat /var/log/directadmin/install.log

or

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

 

2. In order to reset the ‘admin’ password, you can use the command “passwd admin” as below and key in the password twice then you will get a successful notification.

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