how to change directadmin admin password via ssh

Direct admin is one of the most commonly using control panel in web hosting industry. In this control panel we can set different passwords for SSH root and control panel Admin.

How can I access my direct admin control panel?

URL : http://IP Address:2222/
User name : admin
Password : password

how to change directadmin admin password via ssh ?
If you forgot the control panel’s admin password, it is easy to recover from server via SSH.
Step 1: Login to server via SSH;
Step 2: There is a file ‘/usr/local/directadmin/scripts/setup.txt‘ which containing the control panels details. Just view that file to get your control panel’s admin credential.

[root@server]# cat /usr/local/directadmin/scripts/setup.txt
[email protected]
adminpass=puMGGv5N  Mask

You can simply edit the line ‘adminpass=’ to change the admin password. Try it.

Post navigation

Arunlal A

Senior System Developer at Zeta. Linux lover. Traveller. Let's connect! Whether you're a seasoned DevOps pro or just starting your journey, I'm always eager to engage with like-minded individuals. Follow my blog for regular updates, connect on social media, and let's embark on this DevOps adventure together! Happy coding and deploying!

One thought on “how to change directadmin admin password via ssh

Leave a Reply

Your email address will not be published. Required fields are marked *