root.sh only changes the permissions to root, if OID installs on 389 or 636, and not if it is installed on any other port < 1024
Extract from root.sh shows:
if [ -f oidldapd ] ; then
$ECHO "Setting oidldapd file protections"
if [ "389" -eq $NONSSLPORT -o "636" -eq $SSLPORT ] ; then
$CHOWN root oidldapd # make oidldapd setuid root for security
$CHMOD 4710 oidldapd # only owner and group has executepermission
else
$CHMOD 0710 oidldapd # only owner and group has execute permission
$CHMOD u+s oidldapd
**
Solution is to modify root.sh before running it as follow (example below is for ports 390/637):
if [ "389" -eq $NONSSLPORT -o "636" -eq $SSLPORT ] ; then
to:
if [ "390" -eq $NONSSLPORT -o "637" -eq $SSLPORT ] ; then
**
Optionally, leave root.sh unmodified, then as root run:
$chown root oidldapd
$chmod 4710 oidldapd