WebSphere

 

Portal Express, Version 6.0
Operating systems: i5/OS, Linux, Windows

 

Delete passwords from configuration scripts

 

+

Search Tips   |   Advanced Search

 

This topic provides information on removing passwords from configuration scripts after WebSphere Portal Express has been installed and configured.

The installation and configuration processes write security-sensitive information into multiple files. These files contain passwords in them, which are not removed after installation. When you no longer need this information, you should remove it and move the files to a safe place or set the file permissions so that only authorized users can read them.

After you have installed WebSphere Portal Express and configured its components, follow these steps to remove this sensitive information:

  1. Access the WebSphere Portal Express configuration directory:

    Windows and Linux:

    portal_server_root/config

    i5/OS:

    portal_server_root_user/config

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

    Linux:

    ./WPSconfig.sh cleanup-work-dir

    Windows:

    WPSconfig.bat cleanup-work-dir

    i5/OS:

    WPSconfig.sh -profileName wp_profile cleanup-work-dir

    Check the output for any error messages before proceeding with any additional tasks. If any of the configuration tasks fail, verify the values in...

    • wpconfig.properties
    • wpconfig_dbdomain.properties

  3. Start WebSphere Application Server and WebSphere Portal Express:

    Windows and Linux:

    1. Open a command prompt and change to the following directory:

    2. Enter the following command:

      • Linux:

        ./startServer.sh server1

      • Windows:

        startServer.bat server1

      • i5/OS:

        startServer.sh server1 -profileName profile_root

        where profile_root is the name of the WebSphere Application Server profile where WebSphere Portal Express is installed; for example, wp_profile.

      server1 is the name of your WebSphere Application Server administrative server.

    3. Enter the following command:

      • Linux:

        ./startServer.sh WebSphere_Portal

      • Windows:

        startServer.bat WebSphere_Portal

      • i5/OS:

        startServer.sh WebSphere_Portal -profileName profile_root

        where profile_root is the name of the WebSphere Application Server profile where WebSphere Portal Express is installed; for example, wp_profile.

  4. Open a command prompt and change to the following directory:

  5. Remove all passwords from the wpconfig.properties and wpconfig_dbdomain.properties files by entering the appropriate command:

    • Linux:

      ./WPSconfig.sh delete-passwords

    • Windows:

      WPSconfig.bat delete-passwords

    • i5/OS WPSconfig.sh -profileName profile_root delete-passwords

      where profile_root is the name of the WebSphere Application Server profile where WebSphere Portal Express is installed; for example, wp_profile.

    Passwords must also be restored to any backup properties files you have created.

    Check the output for any error messages before proceeding with any additional tasks. If any of the configuration tasks fail, verify the values in the wpconfig.properties and wpconfig_dbdomain.properties files.

    To run additional configuration tasks, you might need to restore passwords to the wpconfig.properties and wpconfig_dbdomain.properties files or specify them on the command line using the -D flag. Refer to Configuration task reference for more information.

 

Parent topic:

Keeping your environment secure

 

Related tasks
Database user registry