What needs to be modified in the config if the user used for starting up the DirServer is changed to non-root ? (Doc ID 1917632.1)

Last updated on OCTOBER 11, 2016

Applies to:

Oracle Directory Server Enterprise Edition - Version 11.1.1.5.0 and later
Information in this document applies to any platform.

Goal

During the instance start up, the following exception is seen:

bash-3.2$ /opt/ldap/dsee7/bin/dsadm start /opt/ldap/dsee7/var/dcc/ads
The instance path is no more owned by root
bash-3.2$

If we standardize the execution user to ID ldapadm.

bash-3.2$ diff /opt/ldap/dsee7/var/dcc/ads/config/state /opt/ldap/dsee7/var/dcc/ads/config/state.20140717
1,2c1,2
< username=ldapadm
< groupname=ldapadm
---
> username=root
> groupname=root
bash-3.2$

And after updating the state file, we get the following messages below:

bash-3.2$ /opt/ldap/dsee7/bin/dsadm start /opt/ldap/dsee7/var/dcc/ads
Failed to start Directory Server instance '/opt/ldap/dsee7/var/dcc/ads'
ns-slapd wrote the following lines in the error log (/opt/ldap/dsee7/var/dcc/ads/logs/errors):
##[17/Jul/2014:08:11:37 +0000] - WARNING - Startup - conn=-1 op=-1 msgId=-1 - Couldn't set the ownership to root for /opt/ldap/dsee7/var/dcc/ads/locks
##[17/Jul/2014:08:11:37 +0000] - WARNING - Startup - conn=-1 op=-1 msgId=-1 - Couldn't set the ownership to root for /opt/ldap/dsee7/var/dcc/ads/locks/imports
##[17/Jul/2014:08:11:37 +0000] - WARNING - Startup - conn=-1 op=-1 msgId=-1 - Couldn't set the ownership to root for /opt/ldap/dsee7/var/dcc/ads/locks/exports
##[17/Jul/2014:08:11:37 +0000] - WARNING - Startup - conn=-1 op=-1 msgId=-1 - Couldn't set the ownership to root for /opt/ldap/dsee7/var/dcc/ads/locks/server
##[17/Jul/2014:08:11:37 +0000] - WARNING - Startup - conn=-1 op=-1 msgId=-1 - Couldn't set the ownership to root for /opt/ldap/dsee7/var/dcc/ads/locks/server
##[17/Jul/2014:08:11:37 +0000] - WARNING - Startup - conn=-1 op=-1 msgId=-1 - Couldn't set the ownership for /opt/ldap/dsee7/var/dcc/ads/locks/server/12518
##[17/Jul/2014:08:11:37 +0000] - Sun-Directory-Server/11.1.1.5.0 B2011.0517.2251 (64-bit) starting up
##[17/Jul/2014:08:11:37 +0000] - INFORMATION - - conn=-1 op=-1 msgId=-1 - setgid(0) failed. error 1 (Not owner)
##[17/Jul/2014:08:1
 

Solution

Sign In with your My Oracle Support account

Don't have a My Oracle Support account? Click to get started

My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms