Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Tomcat admin question
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
Xmist
Tux's lil' helper
Tux's lil' helper


Joined: 30 Dec 2005
Posts: 109
Location: US

PostPosted: Thu May 17, 2007 9:42 am    Post subject: Tomcat admin question Reply with quote

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
View user's profile Send private message
m.wales
n00b
n00b


Joined: 06 Sep 2006
Posts: 18

PostPosted: Thu May 17, 2007 1:35 pm    Post subject: Reply with quote

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
View user's profile Send private message
Xmist
Tux's lil' helper
Tux's lil' helper


Joined: 30 Dec 2005
Posts: 109
Location: US

PostPosted: Fri May 18, 2007 6:05 am    Post subject: Reply with quote

yea I saw that one, I thought that file is for the user password not the admin password. So I what would I type in that file to become admin?
_________________
shorewall how-to
shorewall ports
iptables configuration
Back to top
View user's profile Send private message
m.wales
n00b
n00b


Joined: 06 Sep 2006
Posts: 18

PostPosted: Fri May 18, 2007 6:25 am    Post subject: Reply with quote

You need to set up a role called admin. Then give the role to a user of your choice.
_________________
- Mark W -
Back to top
View user's profile Send private message
Xmist
Tux's lil' helper
Tux's lil' helper


Joined: 30 Dec 2005
Posts: 109
Location: US

PostPosted: Sat May 19, 2007 11:11 am    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum