Configuration to run midserver service as a non-root user
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-09-2023 05:39 PM
I have the midserver service run as a non-root user.
Officially, it is necessary to specify this when executing install.sh, but I forgot to do so.
https://docs.servicenow.com/bundle/tokyo-servicenow-platform/page/product/mid-server/task/t_InstallA...
NON_ROOT_USER
Provide the username to run the service as a non-root user.
If I want to configure it to run as a non-root user later, should I change the following part of mid.sh?
# If specified, the Wrapper will be run as the specified user.
# IMPORTANT - Make sure that the user has the required privileges to write
# the PID file and wrapper.log files. Failure to be able to write the log
# file will cause the Wrapper to exit without any way to write out an error
# message.
# NOTE - This will set the user which is used to run the Wrapper as well as
# the JVM and is not useful in situations where a privileged resource or
# port needs to be allocated prior to the user being changed.
#RUN_AS_USER=

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-13-2023 06:22 AM
Hi,
ServiceNow has config settings that set it to run as non-root. If you need to check, I'd recommend reviewing Linux documentation and similar conversation such as: https://askubuntu.com/questions/700258/how-to-check-if-running-as-root-not-asking-for-sudo
Please consider marking my reply as Helpful and/or Accept Solution, if applicable. Thanks!