On Tue, Nov 30, 2010 at 10:26:20PM -0600, Dan wrote: > maildir.c mods: > > msg_info("TESTING1 set_eugid: euid %ld egid %ld", (long) usr_attr.uid, > (long) usr_attr.gid); > set_eugid(usr_attr.uid, usr_attr.gid); > msg_info("TESTING2 set_eugid: euid %ld egid %ld", (long) usr_attr.uid, > (long) usr_attr.gid); > > > Nov 30 22:21:55 sunsaturn postfix/virtual[53617]: deliver_maildir[3]: recip > te...@test2.com deliver te...@test2.com > Nov 30 22:21:55 sunsaturn postfix/virtual[53617]: TESTING1 set_eugid: euid > 2003 egid 2001 > Nov 30 22:21:55 sunsaturn postfix/virtual[53617]: set_eugid: euid 2003 egid > 2001 > Nov 30 22:21:55 sunsaturn postfix/virtual[53617]: TESTING2 set_eugid: euid > 2003 egid 2001 > Nov 30 22:21:55 sunsaturn postfix/virtual[53617]: set_eugid: euid 125 egid > 125 > > Appears to be a freebsd issue with GID from what I can see if this works > for linux users.
FreeBSD is silently failing to change the effective GID, or the filesystem assigns file groups in an unexpected way. Do you have any "security" features in your BSD Kernel along the lines of Linux SELinux or AppArmor? > Either way I was hoping for a mod on maildir.c for initial create of > directory as root. No, the directories MUST NOT be created by root. Rather, you must pre-create them or user 2003 needs to own the parent directory in which missing child directories will be created, or in some cases (but not this one) the parent directory can be mode 1777. -- Viktor.