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

(ITS#4077) Slapadd creates files with strange permissions

Full_Name: Kevin Spicer
Version: OPENLDAP_REL_ENG_2_3_10
OS: linux gentoo
Submission from: (NULL) (

Doing some testing with OPENLDAP_REL_ENG_2_3_10 I've come across the following
issue when populating a bdb backend with slapadd.

Files are created with the permissions as follows
---x--x--T  1 root root   491520 Oct 11 17:41 cn.bdb
---x--x--T  1 root root     8192 Oct 11 17:40 __db.001
---x--x--T  1 root root   270336 Oct 11 17:40 __db.002
---x--x--T  1 root root    98304 Oct 11 17:40 __db.003
---x--x--T  1 root root   368640 Oct 11 17:40 __db.004
---x--x--T  1 root root   237568 Oct 11 17:40 __db.005
---x--x--T  1 root root   614400 Oct 11 17:41 dn2id.bdb
---x--x--T  1 root root    20480 Oct 11 17:41 gidNumber.bdb

This differs from  the behaviour is 2.2.19 (which is the other version I
currently have compiled on this box) (which created files with mode 0600)

Here are some relevent parts of my database definition from slapd.conf
database        bdb
suffix          "dc=mydomain,dc=com"
rootdn          "cn=Manager,dc=mydomain,dc=com"
directory       /var/db/ldap2/central
mode            0600
overlay         ppolicy
ppolicy_default "cn=systemusers,ou=policy,dc=mydomain,dc=com"

To reproduce...
backup directory using slapcat
Create new empty database directories
Restore directorys with slapadd