Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Java > Tomcat Admin password forgotten

Reply
Thread Tools

Tomcat Admin password forgotten

 
 
D E
Guest
Posts: n/a
 
      05-07-2004
When using my web application manager
(http://localhost:8080/admin)
I forgot my password. Is there an XML file i can look at to remember/obtain
(possibly even set).
Thanks


 
Reply With Quote
 
 
 
 
Murray
Guest
Posts: n/a
 
      05-07-2004

"D E" <(E-Mail Removed)> wrote in message
news:hnOmc.17400$(E-Mail Removed)...
> When using my web application manager
> (http://localhost:8080/admin)
> I forgot my password. Is there an XML file i can look at to

remember/obtain
> (possibly even set).
> Thanks
>
>


Check tomcat-users.xml in the conf directory


 
Reply With Quote
 
 
 
 
D E
Guest
Posts: n/a
 
      05-07-2004

"Murray" <(E-Mail Removed)4Mnet.com.au> wrote in message
news:409bb3b0$0$12740$(E-Mail Removed) u...
>
> "D E" <(E-Mail Removed)> wrote in message
> news:hnOmc.17400$(E-Mail Removed)...
> > When using my web application manager
> > (http://localhost:8080/admin)
> > I forgot my password. Is there an XML file i can look at to

> remember/obtain
> > (possibly even set).
> > Thanks
> >
> >

>
> Check tomcat-users.xml in the conf directory
>
>

Ok i used the name/password found there with role "tomcat" (default name/pw
= tomcat/tomcat) and it didn't work. now when i go to the url
http:localhost:8080/admin, i get a httpstatus 403 (access to specified
resource has been forbidden)....

How do i "reset" this...

Was that the correct role? If this helps, here is a copy of my
tomcat-users.xml file..

<?xml version='1.0' encoding='utf-8'?>
<tomcat-users>
<role rolename="tomcat"/>
<role rolename="role1"/>
<user username="tomcat" password="tomcat" roles="tomcat"/>
<user username="role1" password="tomcat" roles="role1"/>
<user username="both" password="tomcat" roles="tomcat,role1"/>
</tomcat-users>


 
Reply With Quote
 
Murray
Guest
Posts: n/a
 
      05-07-2004
> Was that the correct role? If this helps, here is a copy of my
> tomcat-users.xml file..
>
> <?xml version='1.0' encoding='utf-8'?>
> <tomcat-users>
> <role rolename="tomcat"/>
> <role rolename="role1"/>
> <user username="tomcat" password="tomcat" roles="tomcat"/>
> <user username="role1" password="tomcat" roles="role1"/>
> <user username="both" password="tomcat" roles="tomcat,role1"/>
> </tomcat-users>


Add this:

<role name="admin"/>
<user name="admin" password="whatever" roles="admin"/>


 
Reply With Quote
 
Ryan Stewart
Guest
Posts: n/a
 
      05-07-2004
"Murray" <(E-Mail Removed)4Mnet.com.au> wrote in message
news:409bb99d$0$14771$(E-Mail Removed) u...
> > Was that the correct role? If this helps, here is a copy of my
> > tomcat-users.xml file..
> >
> > <?xml version='1.0' encoding='utf-8'?>
> > <tomcat-users>
> > <role rolename="tomcat"/>
> > <role rolename="role1"/>
> > <user username="tomcat" password="tomcat" roles="tomcat"/>
> > <user username="role1" password="tomcat" roles="role1"/>
> > <user username="both" password="tomcat" roles="tomcat,role1"/>
> > </tomcat-users>

>
> Add this:
>
> <role name="admin"/>
> <user name="admin" password="whatever" roles="admin"/>
>

I believe to access the manager, you need the "manager" role, and it's
"rolename" and "username", not just "name", so for a user that can access
both the admin and manager tools:
<role rolename="manager" />
<role rolename="admin" />
<user username="yourUserName" password="yourPassword"
roles="admin,manager" />

I'm not sure what the "tomcat" role is, but I don't think it's related to
either the admin or manager tool.


 
Reply With Quote
 
Web Surfer
Guest
Posts: n/a
 
      05-08-2004
[This followup was posted to comp.lang.java.programmer]

In article <hnOmc.17400$(E-Mail Removed)>,
http://www.velocityreviews.com/forums/(E-Mail Removed) says...
> When using my web application manager
> (http://localhost:8080/admin)
> I forgot my password. Is there an XML file i can look at to remember/obtain
> (possibly even set).
> Thanks



Check the "conf/tomcat-users.xml" file under your Tomcat distribution.
 
Reply With Quote
 
rinuthomas rinuthomas is offline
Junior Member
Join Date: May 2012
Posts: 1
 
      05-21-2012
Just add this
<tomcat-users>
<user name="username" password="password" roles="manager-gui" />
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Netbeans 5.0 bundled tomcat 5.5.9 admin username and password; koshy@itech-consultancy.com.au Java 2 08-27-2007 03:18 PM
Forgotten Password Reset Alfred E. Newman ASP .Net 1 02-23-2005 09:57 PM
Win XP Pro Admin password forgotten Dugie Computer Support 11 08-08-2004 06:38 PM
Forgotten password Mark Harvey Computer Support 5 04-07-2004 11:57 PM
forgotten password relse Computer Support 2 11-13-2003 02:49 AM



Advertisments