mlock error: not setgid mail

Vonleigh Simmons nospam at illusionart.com
Wed Dec 8 12:24:53 PST 2004


> 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/>



More information about the freebsd-questions mailing list