[Dovecot] bug: no initgroup() after login (was Re: Dovecot shared mailbox folder problem)

Timo Sirainen tss at iki.fi
Thu Aug 9 20:56:17 EEST 2007


On Fri, 2007-07-06 at 11:29 +0200, Steffen Kaiser wrote:
>  	/* setup environment - set the most important environment first
>  	   (paranoia about filling up environment without noticing) */
>  	restrict_access_set_env(system_user, uid, gid, chroot_dir,
>  				set->first_valid_gid, set->last_valid_gid,
>  				set->mail_extra_groups);
> 
> system_user is not set.
> 
> This is true for both local and LDAP users.

It should be set if you use userdb passwd. For other userdbs you need to
return it youself. For example with LDAP:

user_attrs = uid=system_user,..etc..

What about the other part of the patch, is it needed if system_user is
set?

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
Url : http://dovecot.org/pipermail/dovecot/attachments/20070809/44cae7df/attachment.bin 


More information about the dovecot mailing list