Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 8 Dec 2004 12:24:42 -0800
From:      Vonleigh Simmons <nospam@illusionart.com>
To:        Dan Nelson <dnelson@allantgroup.com>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: mlock error: not setgid mail
Message-ID:  <31A102D9-4957-11D9-B2C4-000A2791B6EC@illusionart.com>
In-Reply-To: <20041208152332.GH2629@dan.emsphone.com>
References:  <E15F21B1-48C1-11D9-B2C4-000A2791B6EC@illusionart.com> <20041208024050.GE2629@dan.emsphone.com> <EA4D5338-48FF-11D9-B2C4-000A2791B6EC@illusionart.com> <20041208152332.GH2629@dan.emsphone.com>

next in thread | previous in thread | raw e-mail | index | archive | help
> 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
<http://illusionart.com/>;



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?31A102D9-4957-11D9-B2C4-000A2791B6EC>