[CentOS] Starting slapd: /bin/bash: /tmp/start-slapd.K12378: Permission denied

Brett Wiesner brettwiesner at gmail.com
Sun Jan 18 23:54:47 UTC 2009


Hi,

I'm running Centos 5, with openldap Version: 2.3.27 Release: 8.el5_2.4.

When I run:

$ sudo /etc/init.d/ldap start

I get the following error:

Starting slapd: /bin/bash: /tmp/start-slapd.l14891: Permission denied

(obviously the temp file number changes every time).

It appears to be a permission problem but I thought I did everything to set
up the permissions correctly...

Everything is owned by the ldap user:

$ cd /etc/openldap/
$ ls -al
total 40
drwxr-xr-x  4 ldap ldap  4096 Jan 16 18:07 .
drwxr-xr-x 66 root root  4096 Jan 16 17:55 ..
drwxr-xr-x  2 ldap ldap  4096 Jul  9  2008 cacerts
-rw-r-----  1 ldap ldap   886 Jul  9  2008 DB_CONFIG.example
-rw-r--r--  1 ldap ldap   246 Jul  9  2008 ldap.conf
drwxr-xr-x  3 ldap ldap  4096 Jan 16 17:40 schema
-rw-r-----  1 ldap ldap  3456 Jan 16 18:07 slapd.conf
-rw-r-----  1 ldap ldap 12288 Jan 16 18:07 .slapd.conf.swp

$ sudo ls -al /var/lib/ldap/
total 572
drwx------  2 ldap ldap     4096 Jan 16 17:41 .
drwxr-xr-x 21 root root     4096 Jan 16 17:40 ..
-rw-r--r--  1 ldap ldap     2048 Jan 16 17:41 alock
-rw-------  1 ldap ldap    24576 Jan 16 17:41 __db.001
-rw-------  1 ldap ldap   278528 Jan 16 17:41 __db.002
-rw-------  1 ldap ldap   270336 Jan 16 17:41 __db.003
-rw-------  1 ldap ldap    98304 Jan 16 17:41 __db.004
-rw-------  1 ldap ldap   352256 Jan 16 17:41 __db.005
-rw-------  1 ldap ldap    24576 Jan 16 17:41 __db.006
-rw-------  1 ldap ldap 10485760 Jan 16 17:41 log.0000000001

When I run slaptest, it doesn't look great, but it doesn't look like a
problem...

$ sudo /usr/sbin/slaptest
bdb_db_open: Warning - No DB_CONFIG file found in directory /var/lib/ldap:
(2)
Expect poor performance for suffix dc=XXXX,dc=net.
bdb_db_open: db_open(/var/lib/ldap/id2entry.bdb) failed: No such file or
directory (2)
bdb(dc=XXXX,dc=net): Unknown locker ID: 0
backend_startup_one: bi_db_open failed! (2)
slap_startup failed (test would succeed using the -u switch)

Does anyone know why I'm getting this permission denied message?

Thanks,
Brett
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.centos.org/pipermail/centos/attachments/20090118/df33c71b/attachment.html 


More information about the CentOS mailing list