Wednesday, May 15, 2013

How to change the Username and Password in Tomcat server?



Actually, Inside tomcat folder we usually comment all the user details. We can find this file in the below location

c://tomcat/conf/tomcat-users.xml “

we should add the manager role in this xml

“ <role rolename="manager"/> ”

Now we can create a user and assign manager role to this user.

“ <user username="tomcat" password="tomcat" roles="manager"/> ”

Note : The users who dont have “manager” role they cant enter into the tomcat configuration manager.