Page 1 of 1

Administrator username and password

Posted: 11 Jan 2011, 11:35
by su30mki117
I am a complete noob when it comes to working with linux.
I just installed Mantis Version 1.2.4 on CentOS 5 and it is working properly.
According to the documentation, initially an admin lever account will be created with username-administrator and password-root. But when I tried to login using them, It says the username or password is invalid or the accound has been disabled.

One more thing I would like to mention is, the database was already existing on the system( the system had Mantis previously installed ) and I simply linked it to the application (I did not create a new database). So is it possible that Mantis is expecting me to type in the username and password of the previos Admin who was using Mantis before it was uninstalled?

Re: Administrator username and password

Posted: 11 Jan 2011, 12:31
by atrol
su30mki117 wrote:So is it possible that Mantis is expecting me to type in the username and password of the previos Admin who was using Mantis before it was uninstalled?
If you are using the same database as before: Yes

Re: Administrator username and password

Posted: 11 Jan 2011, 17:28
by su30mki117
Is there any way I can find out the password and username of the previous Admin?
It would be really helpful if I can find it out.

Re: Administrator username and password

Posted: 11 Jan 2011, 22:55
by atrol
Do you have access to the database?
If yes, you can find the username but not the password (it's stored encrypted)
But you can update the password in database with a password of another user where the password is known to you

Re: Administrator username and password

Posted: 12 Jan 2011, 04:56
by su30mki117
Yes I do have access to the database. Can you please mention where exactly in the database I can find the admin's username? And after that, what exactly is the procedure to update the password? Please bear with me, I am a total noob when it comes to linux and Mantis. Any help is appreciated.

Thank You

Re: Administrator username and password

Posted: 12 Jan 2011, 08:18
by atrol
Search in table mantis_user_table for a user where access_level = 90 (maybe the id of this row will be 1 and the username will be administrator if this is an unchanged default installation)
Change the column password in this row to the encrypted password of another user where the password is known to you.

Re: Administrator username and password

Posted: 12 Jan 2011, 10:24
by su30mki117
Thanks a lot. Completed the procedure successfully. :D