Troubleshooting: Using a root user to run WebSphere Commerce
Depending on security requirements for your WebSphere Commerce environment, you might be required to run WebSphere Commerce with a root user.
Problem
Normally, the non-root user is used to complete WebSphere Commerce start and stop functions. If you introduce security changes to your environment, it might be necessary to use the root user for start and stop functions.
Solution
Important: Running WebSphere
Commerce with the root user can cause security problems, ownership
changes and access permissions changes. Ensure a thorough analysis
of the WebSphere Commerce environment is completed before invoking
this change of users.
To run WebSphere Commerce using the root user, complete these steps:
- Depending on the type
of database you are using, complete one
of these tasks:
- Ensure the root user's
.profile
file calls the WebSphere Commerce database user's.profile
file. The following line should appear in the root user's.profile
file:- DB2_users_dir/.profile
Ensure this file does not contain any statements that would fail to run in the Bourne shell.
- Ensure the root user's
.profile
file calls the Oracle installation owner's.profile
file. The following line should appear in the root user's.profile
file:- Oracle_home_dir/.profile
Ensure this file does not contain any statements that would fail to run in the Bourne shell.
- Ensure the root user's
- Open the file:
- WC_installdir/bin/setenv.sh
CMSTARTUP_USER
value from the non-root user to the root user. - Save the change and close the file.