[Date Prev][Date Next] [Chronological] [Thread] [Top]

Re: dbenv_open failed



On Monday 19 September 2005 12:35, TL wrote:
> I noticed that all my files in /var/lib/ldap are owned by slapd.slapd , but
> everytime i start slapd,  only --db.001, --db.002, --db00n, files are
> chowned back to root, *.bdb files and db_config remains owned by slapd.
> Dont know why only those files, when i start slapd are chowned?

1)Please quote properly
2)What version of OpenLDAP are you running?

If you have a not-very-recent 2.2.x, and you are running slapcat or similar as 
a user besides slapd (ie via cron), this is a bug that was fixed quite 
recently (2.2.27 it seems):

http://www.openldap.org/its/index.cgi/Software%20Bugs?id=3703;selectid=3703

> Tleconte
>
> ----- Original Message -----
> From: "Quanah Gibson-Mount" <quanah@stanford.edu>
> To: "TL" <tinchole@satlink.com>; <Openldap-software@OpenLDAP.org>
> Sent: Friday, September 16, 2005 8:19 PM
> Subject: Re: dbenv_open failed
>
> > --On Friday, September 16, 2005 7:40 PM -0300 TL <tinchole@satlink.com>
> >
> > wrote:
> >> Using debian sarge Changed my /etc/ldap/default/slapd to
> >> SLAPD_USER="slapd" SLAPD_GROUP="slapd" chown -R slapd.slapd /etc/ldap
> >> /var/lib/slapd /var/lib/ldap /var/run/slapd and im still getting in my
> >> syslog the err msg: bdb_db_open: dbenv_open(/var/lib/ldap) bdb_db_open:
> >> dbenv_open failed: Permission denied (13) bdb_db_open: dbenv_open
> >> failed! (13) as root, runs without a problem. What am i missing?
> >
> > Your permissions are obviously incorrect somewhere if it runs okay as
> > root, but not as slapd/slapd.  I suggest checking file & directory
> > ownership of /var/lib/ldap.



-- 
Buchan Milne
ISP Systems Specialist
B.Eng,RHCE(803004789010797),LPIC-2(LPI000074592)

Attachment: pgp68oQcFkj58.pgp
Description: PGP signature