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‘


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

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


[email protected]:~# grep adminpass /usr/local/directadmin/scripts/setup.txt

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


[email protected]:~# cat /usr/local/directadmin/scripts/setup.txt
[email protected]
adminpass=OMLjpzVBrrR  Mask

That’s it 🙂 🙂


Related posts:
How to change directadmin admin password via ssh

Post navigation

Arunlal Ashok

Operations Engineer at Endurance International Group. 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
Please follow the LinkedIn page

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

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

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

  2. 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 *