Brian,

Thanks for the reply.

> Looking in numlib/changeuidgid.c I see that libmail_changeuidgid() does
> *not* call initgroups(), but libmail_changeusername() does.
>
> You may find that it works if the uid is given as a name, rather than a
> number. (This depends on what backend database you're using)

>From my courier-authlib debugs, this is what I saw being passed:

Jan 12 16:35:08 krweb authdaemond: Authenticated: sysusername=roddie, 
sysuserid=<null>, sysgroupid=20, homedir=/home/roddie, address=roddie, 
fullname=Roddie Hasan, maildir=<null>, quota=<null>, options=<null>

This fields are the same for users that work and users that do not.  The 
difference between the two is that the non-working users' Maildirs are in 
a different group than their login.  This configuration worked fine before 
4.3.0

I'm assuming launching imapd in a FreeBSD shell passes info the same way 
since I see the problem there, but I'm just guessing.

>> For instance, in /etc/passwd, I'm gid 20 (staff), but my homedir and
>> Maildir are in group 0 (wheel).
>
> Ugh. Having your mailbox set to be owned by root is not a good idea - your
> mail program will have to assume root privileges, and hence if it gets
> broken into, your box will be rooted too.

I should have been clearer - My Maildir (and homedir) are in the wheel 
group (vs. being in the staff group), but are owned by myself and not 
root.

Thanks again for your reply!

Regards,
Roddie

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Courier-imap mailing list
Courier-imap@lists.sourceforge.net
Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-imap

Reply via email to