Delete passwords from properties files

The configuration tasks may require you to write security-sensitive information, such as passwords, into multiple properties files. When you no longer need this security-sensitive information for configuration, you should remove them and move the files to a safe place or set the file permissions so that only authorized users can read them.

To delete passwords and other security-sensitive information from the properties files: After performing the tasks to clean up the work directory and delete the passwords, you may find that in order to successfully perform additional configuration tasks, you may need these passwords. Some tasks may require you to add the passwords back to the wkplc.properties, wkplc_comp.properties, wkplc_dbdomain.properties, and wkplc_sourceDb.properties files while other tasks may allow you to specify the passwords on the command line using the –D flag. Refer to the configuration task documentation to determine which method is required.

  1. Access the WebSphere Portal configuration directory:

    Steps to access the configuration directory by OS

    OS Steps
    Windows™ Access the configuration directory:

    1. Open a command prompt.

    2. Change to the WP_PROFILE/ConfigEngine.

    UNIX™ and Linux™ Access the configuration directory:

    1. Open a terminal session.

    2. Change to the WP_PROFILE/ConfigEngine.

    i Access the configuration directory:

    1. Type STRQSH on an OS/400 command line to start the Qshell Interpreter.

    2. Change to the WP_PROFILE/ConfigEngine.

  2. Remove the work directory that was created during the installation:

    • Windows: ConfigEngine.bat cleanup-work-dir -DWasPassword=foo

    • UNIX and Linux: ./ConfigEngine.sh cleanup-work-dir -DWasPassword=foo

    • i: ConfigEngine.sh cleanup-work-dir -DWasPassword=foo

      Before running additional tasks, check the output for any error messages and, if instructed, correct any items before rerunning the task.

  3. Enter the following commands from the configuration directory to remove all passwords from the wkplc.properties, wkplc_comp.properties, wkplc_sourceDb.properties, and wkplc_dbdomain.properties files:

    • Windows: ConfigEngine.bat delete-passwords -DWasPassword=foo

    • UNIX and Linux: ./ConfigEngine.sh delete-passwords -DWasPassword=foo

    • i: ConfigEngine.sh delete-passwords -DWasPassword=foo

      Before running additional tasks, check the output for any error messages and, if instructed, correct any items before rerunning the task.


Parent

Securing

 


+

Search Tips   |   Advanced Search