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

Re: the permission wrong of the database which created by slapindex.

> After that i found all the db files created by slapindex belongs to 
> root:root.

Of course.

> But i think it should not belong to root instead of ldap.

Yes: chown ldap.ldap /var/lib/ldap/*

> So i try to run this command with the user ldap. But i found that ldap 
> even could not login in gentoo default setting.

Normal.  The ldap user does not have and does not need a shell.

> What's the correct user i should use when run the command "slapindex" or 
> is there anything else i have lost?

You simply need to fix the permissions on the files before starting the