File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Tomcat and the fly likes forget the tomcat credentials Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » Tomcat
Bookmark "forget the tomcat credentials" Watch "forget the tomcat credentials" New topic

forget the tomcat credentials

arekonda ramesh babu
Ranch Hand

Joined: Apr 11, 2006
Posts: 35

iam installed tomcat5.0.

during installation,it asked for admin username" " password" ".

i forget right now, what i entered that time.

where this information located, to retrive back.

what can i do now

James Ward
Ranch Hand

Joined: Apr 27, 2003
Posts: 263
Look at <TOMCAT_HOME>\conf\tomcat-users.xml.
You can find your info. there, and even reset, create new users etc. Look at the roles as well.
arekonda ramesh babu
Ranch Hand

Joined: Apr 11, 2006
Posts: 35

this is i found when i verifyied in tomcat-user.xml

<role rolename="tomcat" />
<role rolename="role1" />
<role rolename="manager" />
<role rolename="admin" />
<user username="tomcat" password="tomcat" roles="tomcat" />
<user username="role1" password="tomcat" roles="role1" />
<user username="both" password="tomcat" roles="tomcat,role1" />
<user username="admin" password="" roles="admin,manager" />

so is it

username and password both are tomcat

if not suggest me which one

Bear Bibeault
Author and ninkuma

Joined: Jan 10, 2002
Posts: 63837

Hint: there is only one user in that file that has admin role and it's not tomcat.

[Asking smart questions] [About Bear] [Books by Bear]
I agree. Here's the link:
subject: forget the tomcat credentials
It's not a secret anymore!