Monday, 10 May 2021

How to Avoid Password Prompt When Using startComponent.sh - OHS





Applies to:-

Oracle Fusion Middleware - Version 12.1.2.0.0 and later
Oracle HTTP Server - Version 12.1.2.0.0 and later

Every time you try to start OHS using startComponent it asks for Node Manager Password. How to avoid this prompt?



SOLUTION

You can avoid password every time you launch the server with startComponent.sh/.cmd by starting it with the storeUserConfig option for the first time.


1.At the prompt, enter the following command:

$DOMAIN_HOME/bin/startComponent.sh <ohs_component_name> storeUserConfig

Please enter your password :

The system will prompt for your Node Manager password.

2.Type the password and press Enter. The system responds with this message:

Creating a key file can reduce the security of your system if it is not a secured location after it is created. Do you want to create the key file? y or n.

3.Type y to store your Node manager password. When you subsequently use this command, you will not need to enter a password.

It creates hidden files in the users home directory after the above steps.

These files contain domain information.

for example

.wlst/nm-key-base_domain.props
.wlst/nm-cfg-base_domain.props


When using startComponent.sh to start and stop OHS 12c after the above steps,
password prompt is omitted.



How to return to the original operation


1. Stop OHS
2. Delete hidden files in the users home directory.

for example

.wlst/nm-key-base_domain.props
.wlst/nm-cfg-base_domain.props

By removing the files, you will be prompted for the password used to configure the component.

No comments:

Post a Comment