Skip to Content mrc logo mrc logo
  • What is m-Power?
    Overview Demos Build Process Case Studies Specs Pricing Trial
    m-Power Resources
    Overview How-To Videos Webinars & Podcasts White Papers Fact Sheets
  • What does m-Power build?
    Overview Database Front-Ends Reporting CRM Systems Business Intelligence Dashboards Inventory Management Mobile Apps ERP Enhancements Modernization Spreadsheets to the Web MS Access to the Web B2B/Web Portals Scheduling Embedded Analytics Web Forms Workflow Data Exploration Budgeting & Forecasting APIs & Web Services Db2 Web Query Alternative
    Solutions by Industry
    Overview Manufacturing Government Foodservice Software Vendors Logistics & Supply Chain Software Consultants Healthcare
  • Development Services Training Mentoring
  • Overview Partners Press Releases Careers Events Contact Blog
  • Support Home FAQ Documentation Customer Portal Enhancements Updates Roadmap Techblog
Try m-Power

m-Power Manual

Browse:

  • Home
  • Security
  • Modifying Default Tomcat User
Back to Manual

Modifying Default Tomcat User

How can we change the default username/password Tomcat ships with?

Various areas of Tomcat are secured to prevent unauthorized access, such as the Probe utility. mrc highly recommends changing the default username and password. You can change this information by modifying the following file: /m-power/tomcat/conf/tomcat-users.xml. Simply change references of mrcuser and save the file. Then, open mrctool.properties, found in m-power/proddata/conf. At the bottom of the file, add two new properties: tomcat_user and tomcat_password. Then, enter the values for the new user and password you just set, so it looks like:

tomcat_user=mySecretUser
tomcat_password=someSecurePassword

Note: If you would prefer to use an encrypted password instead of one in plain text, please follow the steps below:

  1. In m-Power, navigate to Admin -> Menu and Security -> Encrypt Password
  2. Enter in the plain text value and press "Generate Encrypted Password"
  3. Copy password and paste into the tomcat-users.xml file. This file can be found in /tomcat/conf. Replace the existing password
  4. In /tomcat/conf, edit the server.xml file. Look for the following:
    <Realm className="org.apache.catalina.realm.UserDatabaseRealm" resourceName="UserDatabase"/>
  5. Edit the file so it looks like this:

    <Realm className="org.apache.catalina.realm.UserDatabaseRealm" 
    resourceName="UserDatabase" digest="sha-256"/>

  6. Save and restart Tomcat

Note: The value in tomcat_password within mrctool.properties should remain in plain text.

Once done, save this file and restart Tomcat to secure Tomcat screens with your new credentials.

Created: November 5, 2015 | Modified: June 12, 2017

Search


Browse By Category

Build Process (13)
Starting with m-Power (8)
Retrievals (10)
Reports (15)
Summaries (4)
Maintainers (17)
Graphs (8)
m-Power Data Explorer (4)
General (24)
Calculations (5)
Utilities (9)
m-Power Administration (23)
Security (11)
Freemarker (6)
m-Painter (29)
Form Validation (5)
External Objects & UDFs (12)
Deprecated Documentation (23)
Bootstrap Templates (7)

Popular Tags

Record Selections Performance Video mrc-Productivity Series Calculations Popular Graph Properties Dates Maintainers Java m-Painter Advanced Bootstrap Templates Compiling Prompt Screens External Objects SQL Report Reports Database App Properties Administration Security Retrievals Parameters DB2 Freemarker Email Production Application Properties Build Process Summaries Graphs Admin Excel Data Dictionary Retrieval Tomcat Form Validation Maintainer Getting Started Dropdowns Bar Graphs Graphing RPG

See all tags »

michaels, ross & cole, ltd. (mrc)

Privacy Policy Cookie Policy Cookie Settings Notice at Collection Do Not Sell or Share My Personal Information

mrc (US)

2001 Midwest Road
Suite 310
Oak Brook, IL 60523
630-916-0662

mrc (UK)

Mortlake Business Centre
20 Mortlake High Street
London, SW14 8JN
+44-20-335-59566


© mrc. All rights reserved.