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.

[[email protected]]# cat /usr/local/directadmin/scripts/setup.txt
hostname=your.host.name.com
[email protected]
mysql=B8fcQfsfsfiHD
mysqluser=dafsf_admin
adminname=admin
adminpass=puMGGv5N
ns1=ns1.nameserver.com
ns2=ns2.nameserver.com
ip=xxx.xxx.xxx.xxx
netmask=xxx.xxx.xxx.xxx  Mask
uid=2656
lid=1635
services=services_esfg50.tar.gz

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

Post navigation

Arunlal Ashok

Linux Systems Architect at Endurance International Group. I know her (Linux) since many years. Linux lover. Like to play on Linux console. I started this blog to share and discuss Linux thoughts.

Always happy for an open discussion! Write to arun (@) crybit (dot) com. Check about me for more details. About this blog and our strong members, check The team CryBit.com

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 *