View previous topic :: View next topic |
Author |
Message |
Xmist Tux's lil' helper
Joined: 30 Dec 2005 Posts: 109 Location: US
|
Posted: Thu May 17, 2007 9:42 am Post subject: Tomcat admin question |
|
|
How do I set up the password to be admin on tomcat? I'm just using this as a test bed for some jsp projects.
I went into
Code: |
cd /etc/tomcat-5.5/Catalina/localhost
|
then I see this
Code: |
localhost localhost # ls
admin.xml host-manager.xml manager.xml
|
What do I do to the admin.xml? or is there a different approach to this. _________________ shorewall how-to
shorewall ports
iptables configuration |
|
Back to top |
|
|
m.wales n00b
Joined: 06 Sep 2006 Posts: 18
|
Posted: Thu May 17, 2007 1:35 pm Post subject: |
|
|
You need to look in the /tomcat/conf folder. There should be a tomcat-users.xml
You could make it look something like this:
Code: |
<?xml version='1.0' encoding='utf-8'?>
<tomcat-users>
<role rolename="tomcat"/>
<role rolename="role1"/>
<user username="tomcat" password="tomcat" roles="tomcat"/>
<user username="both" password="tomcat" roles="tomcat,role1"/>
<user username="role1" password="tomcat" roles="role1"/>
</tomcat-users>
|
_________________ - Mark W - |
|
Back to top |
|
|
Xmist Tux's lil' helper
Joined: 30 Dec 2005 Posts: 109 Location: US
|
|
Back to top |
|
|
m.wales n00b
Joined: 06 Sep 2006 Posts: 18
|
Posted: Fri May 18, 2007 6:25 am Post subject: |
|
|
You need to set up a role called admin. Then give the role to a user of your choice. _________________ - Mark W - |
|
Back to top |
|
|
Xmist Tux's lil' helper
Joined: 30 Dec 2005 Posts: 109 Location: US
|
Posted: Sat May 19, 2007 11:11 am Post subject: |
|
|
So I would add
Code: |
<role rolename="admin"/>
<user username="admin" password="admin" roles="admin"/>
|
I want to make sure that is the right format. _________________ shorewall how-to
shorewall ports
iptables configuration |
|
Back to top |
|
|
|