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

Tue Jan 20 04:01:28 UTC 2009
Brett Wiesner <brettwiesner at gmail.com>

Thanks! That worked!

On Mon, Jan 19, 2009 at 11:10 AM, Filipe Brandenburger <filbranden at gmail.com
> wrote:

> Hi,
>
> On Sun, Jan 18, 2009 at 18:54, Brett Wiesner <brettwiesner at gmail.com>
> wrote:
> > $ sudo /etc/init.d/ldap start
> > Starting slapd: /bin/bash: /tmp/start-slapd.l14891: Permission denied
>
> Your /tmp/ is mounted with noexec.
>
> To work around this, create a directory where the script can be
> written to and executed (can be owned by root:root and permissions
> 755), for example, /etc/openldap/initscript/, and then add the
> following line to /etc/sysconfig/ldap (create the file if it doesn't
> exist):
>
> TMP=/etc/openldap/initscript
>
> > bdb_db_open: Warning - No DB_CONFIG file found in directory
> /var/lib/ldap: (2)
> > Expect poor performance for suffix dc=XXXX,dc=net.
>
> I suggest you create a /var/lib/ldap/DB_CONFIG file with content such
> as the one below:
>
> set_cachesize 0 15000000 1
> set_lg_regionmax 262144
> set_lg_bsize 2097152
> set_flags DB_LOG_AUTOREMOVE
>
> See "man slapd-bdb" for more details.
>
> HTH,
> Filipe
> _______________________________________________
> CentOS mailing list
> CentOS at centos.org
> http://lists.centos.org/mailman/listinfo/centos
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.centos.org/pipermail/centos/attachments/20090119/89246e5a/attachment-0005.html>