From owner-freebsd-questions@FreeBSD.ORG Wed Dec 8 20:24:52 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 E8D7B16A4CE for ; Wed, 8 Dec 2004 20:24:52 +0000 (GMT) Received: from alpargata.net (alpargata.net [67.18.172.202]) by mx1.FreeBSD.org (Postfix) with ESMTP id AA23D43D73 for ; Wed, 8 Dec 2004 20:24:52 +0000 (GMT) (envelope-from nospam@illusionart.com) Received: from [192.168.1.100] (dsl081-061-217.dsl-isp.net [64.81.61.217] (may be forged)) (authenticated bits=0) by alpargata.net (8.13.1/8.13.1) with ESMTP id iB8KVmRK061587; Wed, 8 Dec 2004 14:31:48 -0600 (CST) (envelope-from nospam@illusionart.com) In-Reply-To: <20041208152332.GH2629@dan.emsphone.com> References: <20041208024050.GE2629@dan.emsphone.com> <20041208152332.GH2629@dan.emsphone.com> Mime-Version: 1.0 (Apple Message framework v619) Content-Type: text/plain; charset=US-ASCII; format=flowed Message-Id: <31A102D9-4957-11D9-B2C4-000A2791B6EC@illusionart.com> Content-Transfer-Encoding: 7bit From: Vonleigh Simmons Date: Wed, 8 Dec 2004 12:24:42 -0800 To: Dan Nelson X-Mailer: Apple Mail (2.619) X-Virus-Scanned: ClamAV 0.80/620/Tue Dec 7 01:41:43 2004 clamav-milter version 0.80j on alpargata.net X-Virus-Status: Clean 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 20:24:53 -0000 > 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. I also ran a find with the group name and ID, maybe someone can let me know if I'm missing any files: # find / -group mail /usr/local/etc/sasldb.db /usr/local/libexec/mlock /var/mail /var/tmp/temproot/var/mail # find / -group 6 /usr/local/etc/sasldb.db /usr/local/libexec/mlock /var/mail /var/tmp/temproot/var/mail Vonleigh Simmons