Troubleshooting: Returning to use a non-root user to run WebSphere Commerce
Depending on security requirements, you might have set up WebSphere Commerce to run using the root user. To return to using a non-root user, steps need to be completed.
Problem
The level of security in your WebSphere Commerce environment, might have invoked changes for the user that is used for the stop and start tasks. Completing the steps, as outlined in Using a root user to run WebSphere Commerce have set the root user to be the user to run the stop and start tasks. Returning the WebSphere Commerce environment back to using the non-root user can be done
Solution
To return WebSphere Commerce using the non-root user, complete these steps:
- Stop all the WebSphere Commerce servers. This includes the Help server and Configuration Manager server.
- Run the following command using the root user:
- WC_installdir/bin/wcnonroot.sh
- Complete the following tasks:
- Navigate to the WAS_installdir/profiles directory.
- Run the command:
- chown -R non-root_User:non-root_Group profile_name
- non-root_User is the non-root user name
- non-root_Group is the group that the non-root user belongs to
- profile_name is the WebSphere Commerce profile
- Open the file:
- WC_installdir/bin/setenv.sh
CMSTARTUP_USER
value from the root user to the non-root user. - Save the change and close the file.
- Switch to the non-root user.
- Start all the required WebSphere Commerce servers.