Changing DA admin password

Whitey

New member
Joined
Sep 5, 2008
Messages
1
Hey.

Starting from tonight I can't log into DA, it gives me the error: Invalid login. Please verify your Username and Password

I have verified it, and it is correct, but I'm still unable to log in. I have searched the forum for solutions to changing the DA password through SSH using this command:

Code:
passwd admin

And it changes the UNIX password, but I'm still not able to log in.

Does anyone know a way around this? Is the password stored in the DB (which I also can't get into because of PHP errors, which is looking more and more like a hack) or in a file somewhere?

Cheers. :)
 
Also tried to change password thru Reseller Level change password section...

Now, can't login in DA in both new and old passwords...

Tried "passwd admin" - still nothing...

disk space is not full...
 
Fedora 9 installation is in beta for 1.33.0
Problem solved by userdel/useradd "admin" user

When you want to change userpass - use shell "passwd" command instead DirectAdmin option
 
If no success try

service directadmin stop
userdel admin
cd /usr/local/directadmin
./directadmin i
./directadmin p
cd /usr/local/directadmin/scripts
useradd -s /bin/bash -d /home/admin -p "yourpassword" admin
./set_permissions.sh all

this should help
 
Last edited:
If no success try

service directadmin stop
userdel admin
cd /usr/local/directadmin/scripts
./set_permissions.sh all
cd /usr/local/directadmin
./directadmin i
./directadmin p

this should help

If you delete the admin user and don't add it again it will be a big problem.
 
Ummm, sorry....
Edited post above and corrected sequence
 
Last edited:
We recently encountered a situation where the server would not let anyone login but we could SSH into the box. We discovered that a backup script had gone awry and filled the hard drive. We removed the files and all was restored to normal.... had us freaked out for sure.
 
It seems DA specifies the password encryption method when creating accounts but doesn't when changing passwords. Basically new accounts' passwords are stored with MD5 encryption, then SHA512 (FC9 default) when changed by DA. Unfortunately, DA only seems to authenticate with MD5.

I did the following on my FC9 box to solve the problem

# authconfig --passalgo md5 --update

I also changed ENCRYPT_METHOD to MD5 in /etc/login.defs.

This changes FC9's default to MD5.
 
Last edited:
Thanks, John. Hopefully as we move into the future you'll figure out a way to allow us to use the more secure sha-512 transparently with DirectAdmin.

Jeff
 
We have not yet had build system that supported it. The newer OS's that we build on will have it, thus it will work. Eg, the Fedora 9 binaries are actually built on Fedora 7. People who update to Debian 5 (which we don't yet officially support) are using Debian 4 binaries. Once we compile DA on a newer OS, then SHA will automatically be supported, with no changes to the DA code, the crypt would be able to decode $6$ on it's own.

John
 
Back
Top