You can run an application server under a user profile other than
the default QEJBSVR user profile.
About this task
To change the application server default user profile:
Procedure
- Choose an existing user profile, or use the Create User Profile
(CRTUSRPRF) command to create a new user profile. The new user
profile must have authority to the same objects to which the QEJBSVR user
profile has authority.
- Specify QEJBSVR as the profile for the new profile group.
- Issue the following command from the command line:
CHGUSRPRF USRPRF(profile) GRPPRF(QEJBSVR)
Important: If you use the enbprfwas script to enable your user profile,
you do not have to issue this command. Instead specify the -chggrpprf parameter
on the enbprfwas script. See Step 3 for more information about how to use
the enbprfwas command
- Optional: If the application server is currently running
under a user profile other than QEJBSVR, run the following commands in Qshell:
- chown -R QEJBSVR profile_root
- app_server_root/bin/grtwasaut
-profileName profile_name -user QEJBSVR -dtaaut RWX -objaut ALL -recursive
- Optional: If the old user profile is no longer used
to run any of the servers in the instance, you can issue the following command
to revoke that profile's authorities:
app_server_root/bin/rvkwasaut
-profileName profile_name
-user profile -recursive
where profile_name is the name of the old
user profile.
- Perform one of the following actions to enable the user profile
to run the application server:
- Use the Operations Navigator.
- Use the enbprfwas command For example, run the following
command:
app_server_root/bin/enbprfwas -profile myProfile
where myProfile is the name of the user profile.
- Specify the new user profile name in the application server Run
As User property.
- In the administrative console, click Servers > Application
Servers and select an application server.
- Under Server Infrastructure, select Java and Process Management,
and click Process Definition.
- Under Additional Properties, click Process Execution and
enter the name of the user profile in the Run As User field.
- Click OK and Save to save your configuration changes.
- Restart the application server.
Results
You can now use the specified user profile to run application servers.