PDA

View Full Version : admin account wont log in via web after password change



FishGuy876
12-17-2009, 07:47 AM
Fresh install of DirectAdmin after having to format my dedicated box. Installed without a hitch from what I could tell, using Ubuntu 9.10 32-bit.

Logged into account admin and used the Password option to change the admin password. Did so, and now the web interface won't accept the new or old passwords. I can ssh into the box normally.

I also tried passwd admin and still the same, I can ssh in no problems, just not log into the web interface.

Can someone suggest anything to try, as im locked out from setting anything up. In a worst case scenario, is there a way to safetly reset DA install to defaults without breaking anything when running setup.sh again? Thanks.

scsi
12-17-2009, 07:48 AM
Using the passwd command to change the admin password could change it. I wouldnt see why it would lock you out.

FishGuy876
12-17-2009, 08:06 AM
When I log in via web, I get:

Invalid login. Please verify your Username and Password

Using the same user/pass on SSH logs me in fine as admin. I tried changing the password again with passwd and still nothing.

scsi
12-17-2009, 08:24 AM
check /var/log/directadmin/error.log

FishGuy876
12-17-2009, 08:37 AM
Nothing odd, no errors or warnings.

If i try and log in as a user that doesnt exist (as a test) it will generate:

2009:12:17-10:30:38: Auth::passValid: unable to get user_info for [fake username]

So its looking somewhere and not returning an error :)

any way to turn on incredibly long log trace mode so it logs every step?

scsi
12-17-2009, 09:03 AM
yeah

Do:



perl -pi -e 's/directadmin=ON/directadmin=OFF/' /usr/local/directadmin/data/admin/services.status
/sbin/service directadmin stop
cd /usr/local/directadmin
./directadmin b200


Hit ctrl + c to stop the process

To restart it do:



/sbin/service directadmin start
perl -pi -e 's/directadmin=OFF/directadmin=ON/' /usr/local/directadmin/data/admin/services.status

FishGuy876
12-17-2009, 09:49 AM
This is what I got:

0: Accept-Encoding: gzip, deflate
1: Accept-Language: en-us
2: Accept: image/gif, image/jpeg, image/pjpeg, application/x-ms-application, application/vnd.ms-xpsdocument, application/xaml+xml, application/x-ms-xbap, application/x-shockwave-flash, */*
3: Cache-Control: no-cache
4: Connection: Keep-Alive
5: Content-Length: 53
6: Content-Type: application/x-www-form-urlencoded
7: Cookie: session=
8: Host: 204.27.56.162:2222
9: Referer: http://204.27.56.162:2222/CMD_LOGIN
10: User-Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.0; WOW64; Trident/4.0; SLCC1; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 1.1.4322; .NET CLR 3.0.30729)
Post string: referer=%2FCMD_LOGIN&username=admin&password=******

Nothing else after the post string. I starred out the password. Tried in IE and Firefox.

scsi
12-17-2009, 09:57 AM
I would just reinstall with setup.sh

If that doesnt fix it then contact directadmin support for help.

FishGuy876
12-17-2009, 11:57 AM
The first time I tried this, it did the same thing.

I then logged in as root, deleted the admin account completely and tried again and it let me log in. I just won't change the password this time :)

Thanks for your help :)