Installed direct admin and logged in with the url given from the installation but now I don't know DA root password

Vanja

Verified User
Joined
Feb 2, 2024
Messages
14
Hi all,
I have just installed DA on Almalinux9 and I managed to login with the long url from the installtion but now I can't log back into as I thought the server root password will take me into DA.
How do I see/change Direct admin main password? For the root user?
 
How do I see/change Direct admin main password? For the root user?
There are 2 passwords.
root passwords for your VPS.
Directadmin admin password.

The Directadmin admin password is created by Directadmin during installation as you have seen.

But the Directadmin installation does never interfere with the vps or server root password, that's something completely different.

Root user = root = root password

There is no Directadmin password for the root user. There is a Directadmin password for the main admin account (sometimes called root admin, but that is different than the root user from the vps/server). It's just the admin password.

So it's important to use correct naming of things to prevent confusion.

So if you want your Directadmin admin password, you can do 2 things.

1.) Login via SSH as root user and look at the /usr/local/directadmin/scripts/setup.txt and in there you will see the directadmin admin password and the mysql admin password.
2.) If that password does not work (or not anymore) then you can change it by using this command as root in SSH.
passwd admin
then a new password is asked twice. After that you can use this password to login to Directadmin.
 
Thank you!
I managed to change the 'admin' password.
That was sooo not obvious and there is no info on it. Watched dozens of YouTube vids and search this forum and no info on it.
So is there no way to change 'admin' DirectAdmin password from the backend interface?
 
So is there no way to change 'admin' DirectAdmin password from the backend interface?
Yes there is. But then you have to be able to login as admin first.
Then you can change any password, including the one from admin.

Doublecheck your admin's FTP password, because of a bug, this probably isn't change to the new one this way. Then you have to change it via the GUI.

search this forum and no info on it.
You didn't search very well then because this is mentioned various times on the forums.
Check my tip below, this works mostly best. Use google, then type like "change admin password directadmin" and see the results. :)

Also... DA does have documentation. I typed in "change admin password" there and found this:
 

Change Password Using SSH/Terminal

Step 1: SSH into the server

1. Firstly, 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. Then, 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
 
From the DA backand, there is an option to change passwords, direct link would be like this:
https://yourdomain.com:2222/HTM_USER_PASSWD
with this you can change any users password including admins.

@ericosman No need to repeat what I already wrote. ;)
 
Thank you!
For both of these:
cat /var/log/directadmin/install.log
or
cat /usr/local/directadmin/scripts/setup.txt
I get no such file or directory.
How can I check if Ftp password is stored and can I change it in the DA backend (for admin user)?
 
Thank you!
For both of these:
cat /var/log/directadmin/install.log
or
cat /usr/local/directadmin/scripts/setup.txt
I get no such file or directory.
How can I check if Ftp password is stored and can I change it in the DA backend (for admin user)?
Any ideas about admin's Ftp password and SQL passwords? ☝️
 
I get no such file or directory.
Did Directadmin install correctly then? Was the installation finished? Because you always have the setup.txt file.

cat /usr/local/directadmin/scripts/setup.txt
I get no such file or directory.
The install.log is not present, but this file should always be present if the installation is finished.

Main SQL password is in the setup.txt too as I wrote.

The admin's FTP password is the same as the login password.
 
Well, I am not sure.
It didn't show any errors as I remember.
It finished installation and gave me the login url.
Not sure how to check if installation went okay.
Tried again to read those files:
cat /usr/local/directadmin/scripts/setup.txt and the same result:
no such file or directory
 
After the install in the CLI it's done, it's not done yet. The GUI shows that CB is still busy
 
See your other thread. Yes you have to wait. No setup.txt means installation is not finished yet. Only DA is finished, not the rest.
 
Back
Top