How to find the Direct Admin(DA) admin’s password – command line option

It is very simple, if you have an option to login to the server as root user.
In a direct admin server, the Admin details are saved in a file ‘/usr/local/directadmin/scripts/setup.txt’. That’s why, we can find-out the login credentials simply from the command line. Here I am using the “grep” command to find the admin password from ‘/usr/local/directadmin/scripts/setup.txt‘

Usage:

Step 1 : Login to server as root user.
Step 2 : Execute the following command;

grep adminpass /usr/local/directadmin/scripts/setup.txt

Example:

root@kelvinox:~# grep adminpass /usr/local/directadmin/scripts/setup.txt
adminpass=OMLjpzVBrrR

Done..! You may use the cat command to find all information from the setup file.

Example:

root@kelvinox:~# cat /usr/local/directadmin/scripts/setup.txt
hostname=your.host.name.com
email=ad@gdfgdgting.com
mysql=B8fcQfsfsfiHD
mysqluser=dafsf_admin
adminname=admin
adminpass=OMLjpzVBrrR
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

That’s it 🙂 🙂

 

Related posts:
How to change directadmin admin password via ssh

Arunlal Ashok

Sr. Linux Server Administrator. I'm managing Linux servers since 2012. I started this blog to share and discuss my ideas. Check My Profile in uPwork (oDesk) and create a job, if you need any administration help. Thanks!!

You may also like...

4 Responses

  1. loxar says:

    hey how to write the code /grep adminpass /usr/local/directadmin/scripts/setup.txt

    i mean starting /grep….or ~#grep……

  2. florian says:

    If I run kali linux as a bootable usb can I use thise code to discover windows of the pc password?If I don’t any ways to find out ?

Leave a Reply

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