From owner-freebsd-questions@FreeBSD.ORG Wed Dec 8 15:23:33 2004 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id C900916A4CE for ; Wed, 8 Dec 2004 15:23:33 +0000 (GMT) Received: from dan.emsphone.com (dan.emsphone.com [199.67.51.101]) by mx1.FreeBSD.org (Postfix) with ESMTP id 7E0A043D5C for ; Wed, 8 Dec 2004 15:23:33 +0000 (GMT) (envelope-from dan@dan.emsphone.com) Received: (from dan@localhost) by dan.emsphone.com (8.13.1/8.13.1) id iB8FNWcl005681; Wed, 8 Dec 2004 09:23:32 -0600 (CST) (envelope-from dan) Date: Wed, 8 Dec 2004 09:23:32 -0600 From: Dan Nelson To: Vonleigh Simmons Message-ID: <20041208152332.GH2629@dan.emsphone.com> References: <20041208024050.GE2629@dan.emsphone.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-OS: FreeBSD 5.3-STABLE X-message-flag: Outlook Error User-Agent: Mutt/1.5.6i cc: freebsd-questions@freebsd.org Subject: Re: mlock error: not setgid mail X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 08 Dec 2004 15:23:33 -0000 In the last episode (Dec 08), Vonleigh Simmons said: > >In the last episode (Dec 07), Vonleigh Simmons said: > >> After updating to 5.3 I'm running into the following, I'm > >> getting the following error in my mail log over and over: > >> > >>usr/local/libexec/mlock[755]: (64) not setgid mail > > I rebuilt imap-uw with -DWITH_SSL_AND_PLAINTEXT, so I don't think > that's it. Here are my permissions for mlock, they match yours: > > -rwx--s--x 1 root mail 5808 Dec 6 21:48 /usr/local/libexec/mlock > > Anyone have any other ideas? The code that does the check is this: struct group *grp = getgrnam ("mail"); if (!grp || (grp->gr_gid != getegid ())) die ("not setgid mail",EX_USAGE); The only way I can see that failing is if getgrnam() failed to look up the "mail" group, or if the gid of mlock doesn't match the gid returned by getgrnam(). Is it possible you have two "mail" groups? Compare the output of "ls -ln" and your /etc/groups file. Splitting that if() into two parts with separate error messages will also tell you which test is failing. -- Dan Nelson dnelson@allantgroup.com