reset admin password

verruckt

Verified User
Joined
Mar 8, 2004
Messages
52
I am unable to log into my directadmin on my server.

I still have root access via ssh, and attempted to change the pasword there. I am still unable to login though. I can however, login with a user account on directadmin.

Is there something else i need to do? Should i restart httpd?
 
log in as root (ssh) and run the command:

passwd admin

it should request you enter a new password, then re-enter it. - if your username for DA is not "admin" then you can do the above, replacing admin with the actual admin username.

The error you are getting when you log in is incorrect password/username?

Chris
 
Yeah, i initially coudnt log in, so as root i changed the password. It never recognized the new password. I had no problems as root to change the password, but when i go to login i get this:

"DirectAdmin Login Page
Invalid login. Please verify your Username and Password"

????

Do i need to restart httpd? or something?
 
can you log into ssh as admin with the new password? - admin is the DA username?

Thats what DA uses.... so if that doesnt work either DA isnt reading it properly (email [email protected]) or the password/account doesn't work properly..

is there anything in the directadmin log also?

Chris
 
Yes, i can login as "admin" via ssh.

I looked for the direct admin log, here is what i have...

[root@monkey root]# whereis directadmin
directadmin: /usr/local/directadmin
[root@monkey root]# cd /usr/local/directadmin
[root@monkey directadmin]# ls
conf da-popb4smtp dataskq log scripts
customapache data directadmin logger update.tar.gz
[root@monkey directadmin]# cd log
[root@monkey log]# ls -l
total 0
[root@monkey log]#

Is it perhaps somewhere else?
 
THANK YOU!

Ok, heres the output...


[root@monkey directadmin]# vi error.log
Unable to read config file. Check to make sure that /usr/local/directadmin/conf/directadmin.conf.lock doesn't exist
Unable to read config file. Check to make sure that /usr/local/directadmin/conf/directadmin.conf.lock doesn't exist
Unable to read config file. Check to make sure that /usr/local/directadmin/conf/directadmin.conf.lock doesn't exist
Unable to read config file. Check to make sure that /usr/local/directadmin/conf/directadmin.conf.lock doesn't exist
Unable to read config file. Check to make sure that /usr/local/directadmin/conf/directadmin.conf.lock doesn't exist
Unable to read config file. Check to make sure that /usr/local/directadmin/conf/directadmin.conf.lock doesn't exist
Unable to read config file. Check to make sure that /usr/local/directadmin/conf/directadmin.conf.lock doesn't exist
Unable to read config file. Check to make sure that /usr/local/directadmin/conf/directadmin.conf.lock doesn't exist


So if i check that directory, i get this...

[root@monkey directadmin]# cd /usr/local/directadmin/conf/
[root@monkey conf]# ls
directadmin.conf license.key mysql.conf


I decided to check the directadmin.conf file, here it is...

[root@monkey conf]# vi directadmin.conf
SSL=0
addip=/usr/local/directadmin/scripts/addip
admindir=./data/admin
apachecert=/etc/httpd/conf/ssl.crt/server.crt
apacheconf=/etc/httpd/conf/httpd.conf
apacheips=/etc/httpd/conf/ips.conf
apachekey=/etc/httpd/conf/ssl.key/server.key
apachelogdir=/var/log/httpd/domains
apachemimetypes=/etc/mime.types
cacert=/usr/local/directadmin/conf/cacert.pem
cakey=/usr/local/directadmin/conf/cakey.pem
demodocsroot=./data/skins/default
docsroot=./data/skins/default
emailspoolvirtual=/var/spool/virtual
emailvirtual=/etc/virtual
ethernet_dev=eth0
ftpconfig=/etc/proftpd.conf




Any ideas? kind of odd
 
You seem to be missing half a config!

Code:
SSL=1
addip=/usr/local/directadmin/scripts/addip
admindir=./data/admin
apachecert=/etc/httpd/conf/ssl.crt/server.crt
apacheconf=/etc/httpd/conf/httpd.conf
apacheips=/etc/httpd/conf/ips.conf
apachekey=/etc/httpd/conf/ssl.key/server.key
apachelogdir=/var/log/httpd/domains
apachemimetypes=/etc/mime.types
cacert=/usr/local/directadmin/conf/cacert.pem
cakey=/usr/local/directadmin/conf/cakey.pem
demodocsroot=./data/skins/default
docsroot=./data/skins/default
emailspoolvirtual=/var/spool/virtual
emailvirtual=/etc/virtual
ethernet_dev=eth0
ftpconfig=/etc/proftpd.conf
ftppasswd=/etc/proftpd.passwd
ftpvhosts=/etc/proftpd.vhosts.conf
license=/usr/local/directadmin/conf/license.key
log_rotate_size=100
logdir=/var/log/directadmin
logger=/usr/local/directadmin/logger
loghostname=0
login_history=10
max_username_length=10
maxfilesize=10485760
mysqlconf=/usr/local/directadmin/conf/mysql.conf
namedconfig=/etc/named.conf
nameddir=/var/named
ns1=[B]admin settings nameserver 1[/B]
ns2=[B]admin settings nameserver 2[/B]
numservers=5
owsadm=/usr/local/frontpage/version5.0/bin/owsadm.exe
port=2222
quota_partition=/
removeip=/usr/local/directadmin/scripts/removeip
servername=[B]hostname[/B]
serverpath=/usr/local/directadmin
session_minutes=60
skinsdir=./data/skins
sshdconfig=/etc/ssh/sshd_config
taskqueue=/usr/local/directadmin/data/task.queue
templates=/usr/local/directadmin/data/templates
ticketsdir=/usr/local/directadmin/data/tickets
timeout=20
tmpdir=../../../home/tmp
userdata=./data/users

Also check its permissions, should be:

Code:
-rw-------  / diradmin diradmin

Backup your current before trying that...

Chris
 
Sorry... I didnt post the whole thing...:p


[root@monkey conf]# vi directadmin.conf
ftppasswd=/etc/proftpd.passwd
ftpvhosts=/etc/proftpd.vhosts.conf
license=/usr/local/directadmin/conf/license.key
log_rotate_size=100
logdir=/var/log/directadmin
logger=/usr/local/directadmin/logger
loghostname=0
login_history=10
logs_to_keep=5
max_username_length=10
maxfilesize=10485760
mysqlconf=/usr/local/directadmin/conf/mysql.conf
namedconfig=/etc/named.conf
nameddir=/var/named
ns1=***********
ns2=***********
numservers=5
owsadm=/usr/local/frontpage/version5.0/bin/owsadm.exe
port=2222
quota_partition=/
removeip=/usr/local/directadmin/scripts/removeip
servername=***********
serverpath=/usr/local/directadmin
session_minutes=60
skinsdir=./data/skins
sshdconfig=/etc/ssh/sshd_config
taskqueue=/usr/local/directadmin/data/task.queue
templates=/usr/local/directadmin/data/templates
ticketsdir=/usr/local/directadmin/data/tickets
timeout=60
tmpdir=../../../home/tmp
userdata=./data/users



And here is the permissions...

-rw------- 1 diradmin diradmin 1474 Mar 8 21:42 directadmin.conf
 
As a bizarre twist to all of this, i canged my password for the admin account, and let a trusted person login from their end. They can login as admin....

I can login as my user account, but not as login, even with the reset password which i know now works. Tried with two different browsers.

EDIT

Now with a 3rd browser (IE, Opera, and Firefox now) i get the same results
 
Last edited:
Tried restarting DA (service directadmin restart)?

If that fails im unsure, and you'll probably need to check with John or Mark.

Chris
 
For no reason that im aware of. Things are working fine now.

Is it possible that DA takes a while to know the passwords? I dont see how.

Anyway, its working now and im fine.

And YES i was typing the passwords correctly. At one point i make the admin pass "123" and still...

Oh well.


Thanks for all the help PROWEB!!!
 
e7Servers said:
It say sunable to write session file for me.....
That error indicates that /home/tmp is not setup correctly.

1) make sure /home/tmp exists
2) type:

chmod 1777 /home/tmp

John
 
Back
Top