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

Re: slapd.conf permission denied



On Sat, 3 Apr 2004, Robert Fitzpatrick wrote:

> I can only start slapd as user root, it used to work as ldap, but for a
> couple of weeks, this has been a problem - not sure what I've done, been
> trying to get SASL, etc. going. I'm running 2.1.29 on FreeBSD-5.2.1 and
> although my configuration files, database dir and all are owned by the
> ldap user, this is what I get:
>
> connections_destroy: nothing to destroy.
> Apr  3 16:31:16 esmtp slapd[5070]: bdb_initialize: Sleepycat Software: Berkeley DB 4.1.25: (December 19, 2002)
> Apr  3 16:31:16 esmtp slapd[5070]: could not open config file "/usr/local/etc/openldap/slapd.conf": Permission denied (13)
> Apr  3 16:31:16 esmtp slapd[5070]: slapd shutdown: freeing system resources.
> Apr  3 16:31:16 esmtp slapd[5070]: slapd stopped.
> Apr  3 16:31:16 esmtp slapd[5070]: connections_destroy: nothing to destroy.
>
> esmtp# ls -la /usr/local/etc/openldap
> total 2590
> drw-r--r--   6 ldap  ldap       512 Apr  3 16:12 .

You need to give slapd execute (ie, search) permission for the directory
(chmod u+x /usr/local/etc/openldap should do).

Hope this helps,

Regards,

Timo


-- 
Timo Felbinger                  <Timo.Felbinger@physik.uni-potsdam.de>
Quantum Physics Group           http://www.quantum.physik.uni-potsdam.de
Institut fuer Physik            Tel: +49 331 977 1793      Fax: -1767
Universitaet Potsdam, Germany