You can install the Database Security standalone server on a Linux computer with a service account rather than the default user that the system creates. To control which user is used to install and run the server, use one of the following environment variables. The variables set the user and group for installing and running the server are as follows:
- SERVER_INSTALL_USER
- SERVER_INSTALL_GROUP
You need to set these variables only during the first installation. Subsequent upgrades detect proper user.
If
SERVER_INSTALL_GROUP isn't specified, the group with the same name as
SERVER_INSTALL_USER is used. If the user or group doesn't exist, the installer creates it locally.
If you create the user or group before installation, the server doesn't create the user or group.
NOTE: An enhancement has been introduced that uses
getent to detect whether a user or group exists. Checks also include external users or groups, such as from LDAP.
For example, to install
user: myuser and group: mygroup, use the following variables:
SERVER_INSTALL_USER=myusr SERVER_INSTALL_GROUP=mygrp ./mfe-dbs-server-jre-4.4.9-10.i586.rpm.bin
NOTE: The installer still creates the default user dbssrvr. The user is created to avoid rpm warnings during the installation.
To skip the creation of the user, set the env variable to SERVER_DEF_USER_SKIP=yes
For example: SERVER_INSTALL_USER=myusr SERVER_INSTALL_GROUP=mygrp SERVER_DEF_USER_SKIP=yes ./mfe-dbs-server-jre-4.4.9-10.i586.rpm.bin
In this case, the installer displays the following warnings:
- Warning: user dbssrvr does not exist - using root
- Warning: group dbssrvr does not exist - using root
You can safely ignore the warnings. They occur because the default install user
dbssrvr isn't created.