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-09-2023 07:01 PM
Hi,
Please refer to this similar thread for assistance: https://www.servicenow.com/community/itom-forum/installation-of-mid-server-as-a-non-root-user-on-lin...
More specifically, documentation here: https://docs.servicenow.com/bundle/tokyo-servicenow-platform/page/product/mid-server/task/t_InstallA...
Please consider marking my reply as Helpful and/or Accept Solution, if applicable. Thanks!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-09-2023 09:54 PM
@Allen Andreas
Thank you for comment.
The document you provided to us states the following
This process is only applicable if you installed the MID Server manually using the ZIP file. If you installed the MID Server with the procedure in Install a MID Server on Linux, then the MID Server is already running as a non-root user.
I installed the MID Server with the procedure in Install a MID Server on Linux, though this method apply?

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-10-2023 06:37 AM
Hi,
If my reply above was Helpful, please mark it as such.
If you installed it per the second method mentioned in the documentation, then you don't need to do anything as it would be running as a non-root user already.
Please consider marking my reply as Helpful and/or Accept Solution, if applicable. Thanks!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-12-2023 05:28 PM
@Allen Andreas
Linux MID Server silent installation
is the second method?
I have done the first method.
How can I be sure that I am already running as a non-root user?