Hi,<br><br>I'm running Centos 5, with openldap Version: 2.3.27 Release: 8.el5_2.4.<br><br>When I run:<br><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">$ sudo /etc/init.d/ldap start</span><br>

<br>I get the following error:<br><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">Starting slapd: /bin/bash: /tmp/start-slapd.l14891: Permission denied</span><br><br>(obviously the temp file number changes every time).<br>

<br>It appears to be a permission problem but I thought I did everything to set up the permissions correctly...<br><br>Everything is owned by the ldap user:<br><br><span style="font-family: courier new,monospace;">$ cd /etc/openldap/</span><br style="font-family: courier new,monospace;">

<span style="font-family: courier new,monospace;">$ ls -al</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">total 40</span><br style="font-family: courier new,monospace;">

<span style="font-family: courier new,monospace;">drwxr-xr-x  4 ldap ldap  4096 Jan 16 18:07 .</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">drwxr-xr-x 66 root root  4096 Jan 16 17:55 ..</span><br style="font-family: courier new,monospace;">

<span style="font-family: courier new,monospace;">drwxr-xr-x  2 ldap ldap  4096 Jul  9  2008 cacerts</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">-rw-r-----  1 ldap ldap   886 Jul  9  2008 DB_CONFIG.example</span><br style="font-family: courier new,monospace;">

<span style="font-family: courier new,monospace;">-rw-r--r--  1 ldap ldap   246 Jul  9  2008 ldap.conf</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">drwxr-xr-x  3 ldap ldap  4096 Jan 16 17:40 schema</span><br style="font-family: courier new,monospace;">

<span style="font-family: courier new,monospace;">-rw-r-----  1 ldap ldap  3456 Jan 16 18:07 slapd.conf</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">-rw-r-----  1 ldap ldap 12288 Jan 16 18:07 .slapd.conf.swp</span><br>

<br><span style="font-family: courier new,monospace;">$ sudo ls -al /var/lib/ldap/</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">total 572</span><br style="font-family: courier new,monospace;">

<span style="font-family: courier new,monospace;">drwx------  2 ldap ldap     4096 Jan 16 17:41 .</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">drwxr-xr-x 21 root root     4096 Jan 16 17:40 ..</span><br style="font-family: courier new,monospace;">

<span style="font-family: courier new,monospace;">-rw-r--r--  1 ldap ldap     2048 Jan 16 17:41 alock</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">-rw-------  1 ldap ldap    24576 Jan 16 17:41 __db.001</span><br style="font-family: courier new,monospace;">

<span style="font-family: courier new,monospace;">-rw-------  1 ldap ldap   278528 Jan 16 17:41 __db.002</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">-rw-------  1 ldap ldap   270336 Jan 16 17:41 __db.003</span><br style="font-family: courier new,monospace;">

<span style="font-family: courier new,monospace;">-rw-------  1 ldap ldap    98304 Jan 16 17:41 __db.004</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">-rw-------  1 ldap ldap   352256 Jan 16 17:41 __db.005</span><br style="font-family: courier new,monospace;">

<span style="font-family: courier new,monospace;">-rw-------  1 ldap ldap    24576 Jan 16 17:41 __db.006</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">-rw-------  1 ldap ldap 10485760 Jan 16 17:41 log.0000000001</span><br>

<br>When I run slaptest, it doesn't look great, but it doesn't look like a problem...<br><br><span style="font-family: courier new,monospace;">$ sudo /usr/sbin/slaptest</span><br style="font-family: courier new,monospace;">

<span style="font-family: courier new,monospace;">bdb_db_open: Warning - No DB_CONFIG file found in directory /var/lib/ldap: (2)</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">Expect poor performance for suffix dc=XXXX,dc=net.</span><br style="font-family: courier new,monospace;">

<span style="font-family: courier new,monospace;">bdb_db_open: db_open(/var/lib/ldap/id2entry.bdb) failed: No such file or directory (2)</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">bdb(dc=XXXX,dc=net): Unknown locker ID: 0</span><br style="font-family: courier new,monospace;">

<span style="font-family: courier new,monospace;">backend_startup_one: bi_db_open failed! (2)</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">slap_startup failed (test would succeed using the -u switch)</span><br>

<br>Does anyone know why I'm getting this permission denied message?<br><br>Thanks,<br><font color="#888888">Brett<br></font>