how to get admin password?

yacenty

Verified User
Joined
Jul 6, 2007
Messages
28
Hello,
I've lost all data from my hdd and of course admin pass for my DA server
where it's stored? how can I get it?

Thanks in advance,
BR
YacentY
 
yacenty:
more details...on this?

do you have any ssh access to the DA box.... ? some other account?
 
If admin is the only account added to wheel [can su from] then you'll need local access to reset the pass.
 
If admin is the only account added to wheel [can su from] then you'll need local access to reset the pass.
Not all OS Distributions require an account be in the wheel group in order to su once you're logged in.

Jeff
 
I've lost all data from my hdd and of course admin pass for my DA server
where it's stored? how can I get it?
Passwords are NOT stored in plain text or in any kind of reversible code.

You'll have to somehow get root access, or local single-user access, to your server, and change the admin password.

Jeff
 
I have acces to reseller account DA - via www and of course I have access to shell with root permisions.
how to reset admin pass for www DA
is it clearer? or do You need sth more?
 
Hmmm I could try....
1) system level and I am not sure how DA reacts to the change :)
login as reseller thru ssh...
su root.....
passwd admin...

it will ask you to enter new password.... (at least it should) :D

OR ....
2)
I know that DA stores mysql password in the file below(cleartext) and you can try use it as your admin password(probably it's the same):
just view it ... /usr/local/directadmin/conf/mysql.conf
 
Last edited:
Hmmm I could try....
1) system level and I am not sure how DA reacts to the change :)
login as reseller thru ssh...
su root.....
passwd admin...

it will ask you to enter new password.... (at least it should) :D
not

OR ....
2)
I know that DA stores mysql password in the file below(cleartext) and you can try use it as your admin password(probably it's the same):
just view it ... /usr/local/directadmin/conf/mysql.conf

1. doesn't work
2. works - thanks a lot:)
 
Just for completeness, I want to add that your /usr/local/directadmin/scripts/setup.txt file will contain both your MySQL and DA Admin passwords as created during DirectAdmin's initial install. However, this file is not updated if you change either password after install.

Cheers,
 
Back
Top