{"id":2939,"date":"2014-08-07T06:30:07","date_gmt":"2014-08-07T06:30:07","guid":{"rendered":"http:\/\/www.theperfectarts.com\/?p=2939"},"modified":"2016-05-03T09:05:01","modified_gmt":"2016-05-03T09:05:01","slug":"tomcat-admin-password","status":"publish","type":"post","link":"https:\/\/www.ktchost.com\/blog\/tomcat-admin-password\/","title":{"rendered":"Tomcat admin password"},"content":{"rendered":"<p><script type=\"text\/javascript\">\/\/ <![CDATA[\nvar _gaq = _gaq || []; _gaq.push(['_setAccount', 'UA-27772211-1']); _gaq.push(['_trackPageview']); (function() { var ga = document.createElement('script'); ga.type = 'text\/javascript'; ga.async = true; ga.src = ('https:' == document.location.protocol ? 'https:\/\/ssl' : 'http:\/\/www') + '.google-analytics.com\/ga.js'; var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s); })();\n\/\/ ]]><\/script><br \/>\nAs a newbie many users facing the problems to found out the Tomcat admin user password, the Tomcat admin password is defined in the servers main tomcat-users.xml file and we can also change the admin password by using the same file.<\/p>\n<p>Open the file <strong>\/usr\/local\/jakarta\/tomcat\/conf\/tomcat-users.xml<\/strong> in your favorite editor<\/p>\n<p><strong>pico \/usr\/local\/jakarta\/tomcat\/conf\/tomcat-users.xml<\/strong><\/p>\n<p>Now search for the string<\/p>\n<p><strong>&lt;role rolename=&#8221;manager&#8221;\/&gt;<\/strong><\/p>\n<p>Under the above string, the admin user and password is available in the following simple text format.<\/p>\n<p><strong>&lt;role rolename=&#8221;manager&#8221;\/&gt;<\/strong><br \/>\n<strong> &lt;role rolename=&#8221;admin&#8221;\/&gt;<\/strong><br \/>\n<strong> &lt;user username=&#8221;admin&#8221; password=&#8221;<strong>asda!@##<\/strong>&#8221; roles=&#8221;admin,manager&#8221;\/&gt;<\/strong><br \/>\n<strong>&lt;\/tomcat-users&gt;<\/strong><\/p>\n<p>If you want to change the Tomcat admin password then change the password under the <strong>&#8220;Password=&#8221;asda!@##&#8221;<\/strong> section.<\/p>\n<p>After saving the changes in the <strong>&#8220;\/usr\/local\/jakarta\/tomcat\/conf\/tomcat-users.xml&#8221;<\/strong> restart the Tomcat server and browse the Tomcat admin section by using the following URL<\/p>\n<p><strong>http:\/\/server-ip:8080\/manager\/html<\/strong><br \/>\n<strong> or<\/strong><br \/>\n<strong> http:\/\/server-hostname::8080\/manager\/html<\/strong><\/p>\n","protected":false},"excerpt":{"rendered":"<div class=\"mh-excerpt\"><p>As a newbie many users facing the problems to found out the Tomcat admin user password, the Tomcat admin password is defined in the servers <a class=\"mh-excerpt-more\" href=\"https:\/\/www.ktchost.com\/blog\/tomcat-admin-password\/\" title=\"Tomcat admin password\">[&#8230;]<\/a><\/p>\n<\/div>","protected":false},"author":1,"featured_media":4062,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[52],"tags":[],"class_list":["post-2939","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-tomcat-web-server"],"_links":{"self":[{"href":"https:\/\/www.ktchost.com\/blog\/wp-json\/wp\/v2\/posts\/2939"}],"collection":[{"href":"https:\/\/www.ktchost.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.ktchost.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.ktchost.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.ktchost.com\/blog\/wp-json\/wp\/v2\/comments?post=2939"}],"version-history":[{"count":8,"href":"https:\/\/www.ktchost.com\/blog\/wp-json\/wp\/v2\/posts\/2939\/revisions"}],"predecessor-version":[{"id":2943,"href":"https:\/\/www.ktchost.com\/blog\/wp-json\/wp\/v2\/posts\/2939\/revisions\/2943"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.ktchost.com\/blog\/wp-json\/wp\/v2\/media\/4062"}],"wp:attachment":[{"href":"https:\/\/www.ktchost.com\/blog\/wp-json\/wp\/v2\/media?parent=2939"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.ktchost.com\/blog\/wp-json\/wp\/v2\/categories?post=2939"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.ktchost.com\/blog\/wp-json\/wp\/v2\/tags?post=2939"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}