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

Re: (ITS#4719) Support for running slapadd/slapindex as a user



At 11:48 AM 10/24/2006, ando@sys-net.it wrote:
>quanah@stanford.edu wrote:
>> It would be nice if you could pass -u and -g options to run as another
>> user/group so that on systems where OpenLDAP is running as another user or
>> group, the files created by slapadd & slapindex have the correct ownerships
>> (rather than root, for example).
>>   
>OK for slapadd; for slapindex and other tools, what about using 
>user/group info from the file(s) itself?

Why not just use su(1)?  the only reason slapd(8) has -u/-g options
is because it changes root after some initialization.