mrc logo mrc logo
  • m-Power m-Power
    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
  • Solutions Solutions
    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 and Web Services Db2 Web Query Alternative
    Solutions by Industry
    Overview Manufacturing Government Foodservice Software Vendors Logistics & Supply Chain Software Consultants Healthcare
  • Services Services
    Development Services Training Mentoring
  • About About
    Overview Partners Press Releases Careers Events Contact Blog
  • Support Support
    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 Video m-Painter Summaries Advanced Dropdowns Application Properties Popular Maintainers Java SQL Database App Properties Administration Production Graphs Form Validation Bar Graphs Graphing External Objects Report Prompt Screens Data Dictionary DB2 mrc-Productivity Series Reports Getting Started Build Process Bootstrap Templates Dates Retrievals Tomcat Graph Properties Admin Parameters RPG Freemarker Maintainer Performance Excel Email Calculations Compiling Retrieval Security

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


© 2024 mrc. All rights reserved.