ODSEE - What Modification(s) Need to be Made in the "dse.ldif" if the User for Starting the Directory Server is Changed to a 'non-root' User?
(Doc ID 1917632.1)
Last updated on FEBRUARY 23, 2023
Applies to:
Oracle Directory Server Enterprise Edition - Version 11.1.1.5.0 and laterInformation in this document applies to any platform.
Goal
During the instance start up, the following exception is seen:
$ /$DS_INSTALL_PATH/dsee7/bin/dsadm start /$DS_INSTALL_PATH/dsee7/var/dcc/ads
The instance path is no more owned by root
$
If the execution user is changed to ID <NON_ROOT_USER>.
$ diff /$DS_INSTALL_PATH/dsee7/var/dcc/ads/config/state /$DS_INSTALL_PATH/dsee7/var/dcc/ads/config/state.20140717
1,2c1,2
< username=<NON_ROOT_USER>
< groupname=<NON_ROOT_USER>
---
> username=root
> groupname=root
$
And after updating the state file, the following messages are observed:
$ /$DS_INSTALL_PATH/dsee7/bin/dsadm start /$DS_INSTALL_PATH/dsee7/var/dcc/ads
Failed to start Directory Server instance '/$DS_INSTALL_PATH/dsee7/var/dcc/ads'
ns-slapd wrote the following lines in the error log (/$DS_INSTALL_PATH/dsee7/var/dcc/ads/logs/errors):
[DATE/TIMESTAMP] - WARNING - Startup - <.......> - Couldn't set the ownership to root for /$DS_INSTALL_PATH/dsee7/var/dcc/ads/locks
[DATE/TIMESTAMP] - WARNING - Startup - <.......> - Couldn't set the ownership to root for /$DS_INSTALL_PATH/dsee7/var/dcc/ads/locks/imports
[DATE/TIMESTAMP] - WARNING - Startup - <.......> - Couldn't set the ownership to root for /$DS_INSTALL_PATH/dsee7/var/dcc/ads/locks/exports
[DATE/TIMESTAMP] - WARNING - Startup - <.......> - Couldn't set the ownership to root for /$DS_INSTALL_PATH/dsee7/var/dcc/ads/locks/server
[DATE/TIMESTAMP] - WARNING - Startup - <.......> - Couldn't set the ownership to root for /$DS_INSTALL_PATH/dsee7/var/dcc/ads/locks/server
[DATE/TIMESTAMP] - WARNING - Startup - <.......> - Couldn't set the ownership for /$DS_INSTALL_PATH/dsee7/var/dcc/ads/locks/server/12518
[DATE/TIMESTAMP] - Sun-Directory-Server/11.1.1.5.0 B2011.0517.2251 (64-bit) starting up
[DATE/TIMESTAMP] - INFORMATION - - <.......> - setgid(0) failed. error 1 (Not owner)
##[17/Jul/2014:08:1
Solution
To view full details, sign in with your My Oracle Support account. |
|
Don't have a My Oracle Support account? Click to get started! |
In this Document
Goal |
Solution |
References |