Thu Sep 29 12:47:49 +07 2022

chown error in slapd start

I would like to report a small inconvenient in the port of openldap26-server on FreeBSD. The startup script /usr/local/etc/slapd incudeds the line: chown -RL "$slapd_owner" "${DBDIR}" around the line 127 My DBDIR is a file system mounted to only contain LDAP data: fbsd63<root>334: mount -p |grep da1p1 /dev/da1p1 /var/db/openldap-data ufs rw 2 2 As such, it contains the file .sujournal that is not changeable" fbsd63<root>335: ll -o /var/db/openldap-data/.sujournal 4 65600 -r-------- 1 root wheel schg,sunlnk,nodump,opaque 33554432 Sep 20 12:02 /var/db/openldap-data/.sujournal The chown in the startup script throws an error: fbsd63<root>336: /usr/local/etc/rc.d/slapd restart Stopping slapd. Waiting for PIDS: 41425. chown: /var/db/openldap-data/.sujournal: Operation not permitted Performing sanity check on slap configuration: OK Starting slapd. The script still work, but it may be confusing for some users who have their DBDIR as an independant filesystem.

Posted by Olivier | Permanent link