[comp.sys.att] making "expire" work

darren@bacchus (Darren Friedlein) (03/08/88)

I know there are better places to post messages of this genre, but I only
get the unix-pc groups right now, so here goes:

I've been trying to "expire" messages (now reaching 2 meg - just unix-pc.*!),
but every time I run expire, no matter what the parameters, I get the message:

expire: Cannot get NEWSGRP gr entry

Several things could be causing this (peculiarities with my news directories
in particular), but I think it's more likely related to a missing file or
something like that.  Can anyone help me?  Reply through mail or
unix-pc.general if it's of general interest.

-Darren

/******                      /*****       {mcnc}            Darren G. Friedlein
 *     *      /******        *            {icus}  Rt 4 Box 416, Durham NC 27703
 *     *      *              *            {ethos}    data(bacchus):919/596-7746
 *     *urham \*****\        *     ompany {gladys}           voice:919/596-9492
\******             *oftware \*****       {bakerst}!bacchus!darren
              ******/
"I broke a mirror in hy house - I'm supposed to get seven years bad luck but
my lawyer thinks he can get me five."            -Steven Wright

ken@maxepr.UUCP (Ken Brassler) (03/09/88)

In article <260@bacchus> darren@bacchus (Darren Friedlein) writes:
>
>but every time I run expire, no matter what the parameters, I get the message:
>
>expire: Cannot get NEWSGRP gr entry
>

If you look though expire.c, you'll see that this error message is
produced when a call to getgrnam() fails. getgrnam() is a library
function, explained in getgrent(3c), which tries to find the group
id, "NEWSGRP", in the /etc/group file. Obviously, the group is not
there.

So, find out what group NEWSGRP is, (ls -l /usr/lib/news) then add it
to /etc/group.
-- 

Ken Brassler {ihnp4|qantel|pyramid|lll-crg}!pacbell!maxepr!ken