Xref: utzoo news.admin:4102 news.sysadmin:1719 comp.mail.uucp:2383
Path: utzoo!utgpu!watmath!clyde!att!rutgers!cmcl2!nrl-cmf!ames!mailrus!cornell!batcomputer!itsgw!steinmetz!uunet!swlabs!jack
From: jack@swlabs.UUCP (Jack Bonn)
Newsgroups: news.admin,news.sysadmin,comp.mail.uucp
Subject: Re: Dangerous hole in Usenet!
Message-ID: <3943@swlabs.UUCP>
Date: 28 Nov 88 15:15:15 GMT
References: <1971@van-bc.UUCP> <572@comdesign.CDI.COM> <5517@medusa.cs.purdue.edu> <561@redsox.UUCP> <2675@epimass.EPI.COM> <1250@vsi1.UUCP>
Reply-To: jack@swlabs.UUCP (Jack Bonn)
Organization: Software Labs, Ltd. Easton, CT USA
Lines: 32

In article <1250@vsi1.UUCP> lmb@vsi1.UUCP (Larry Blair) writes:
>Why execute the map script when uuhosts can easily be modified to unpack them
>with a script?

I run the following script daily to keep my map data base up to date.  It
has the following features:

1) It doesn't give the map entry directly to sh (good for security).

2) It allows the normal expire/supersedes logic to keep old maps out of 
   the data base (good for disk space management).

3) It uses pipes for intermediate results (good for concurrency as well 
   as piece of mind).  

Here it is:

    PATH=$PATH:$HOME/bin
    export PATH
    for file in /usr/spool/news/comp/mail/maps/*
    do
        sed '1,/cat.*SHAR_EOF/d
             /SHAR_EOF/,$d' <$file
    done | pathalias -dihnp4 | pathproc >/usr/tmp/newpaths
    mv $HOME/paths $HOME/opaths
    mv /usr/tmp/newpaths $HOME/paths

But I still have to unmount and fsck the partition containing news to
keep from running out of inodes.  :-(  At least I do it from cron.
-- 
Jack Bonn, <> Software Labs, Ltd, Box 451, Easton CT  06612
uunet!swlabs!jack (UUCP)	jack%swlabs.uucp@uunet.uu.net (INTERNET)