hi Jonathan/Torsten/all,
i've been bitten by the same issue of db_recover leaving its __db.*
files only readable by root causing slapd to fail without any error
message when you try starting it. here's a patch to /etc/init.d/slapd
that fixes the issue. it may not be the best way of doing this but i
think it's the simplest.
nessim
136a137,138
> DB_OWNER=${SLAPD_USER:-root}
> DB_GROUP=${SLAPD_GROUP:-root}
140a143,146
> # db4.2_recover tends to leave the __db.00* region files
owned by root
> # which stops slapd from starting as any user but root.
> # see \
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=308416
> `chown ${DB_OWNER}:${DB_GROUP} $dbdir/__db.*
136a137,138
> DB_OWNER=${SLAPD_USER:-root}
> DB_GROUP=${SLAPD_GROUP:-root}
140a143,146
> # db4.2_recover tends to leave the __db.00* region files owned by root
> # which stops slapd from starting as any user but root.
> # see http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=308416
> `chown ${DB_OWNER}:${DB_GROUP} $dbdir/__db.*`