From owner-freebsd-isp Wed Jan 29 20:38:31 1997 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.5/8.8.5) id UAA18933 for isp-outgoing; Wed, 29 Jan 1997 20:38:31 -0800 (PST) Received: from smyrno.sol.net (smyrno.sol.net [206.55.64.117]) by freefall.freebsd.org (8.8.5/8.8.5) with ESMTP id UAA18921 for ; Wed, 29 Jan 1997 20:38:12 -0800 (PST) Received: from solaria.sol.net (solaria.sol.net [206.55.65.75]) by smyrno.sol.net (8.8.3/8.8.3) with SMTP id WAA21710; Wed, 29 Jan 1997 22:37:58 -0600 (CST) Received: from localhost by solaria.sol.net (8.5/8.5) id WAA01074; Wed, 29 Jan 1997 22:17:20 -0600 From: Joe Greco Message-Id: <199701300417.WAA01074@solaria.sol.net> Subject: Re: /etc/security on news servers To: Don.Lewis@tsc.tdk.com (Don Lewis) Date: Wed, 29 Jan 97 22:17:19 CST Cc: freebsd-isp@freebsd.org In-Reply-To: <199701280641.WAA19513@salsa.gv.tsc.tdk.com> from "Don Lewis" at Jan 27, 97 10:41:23 pm X-Mailer: ELM [version 2.4dev PL65] MIME-Version: 1.0 Content-Type: text Sender: owner-isp@freebsd.org X-Loop: FreeBSD.org Precedence: bulk > What are folks running news servers doing to keep /etc/security from > traversing their news spools? > > There's a similar problem with /usr/libexec/locate.updatedb that > /etc/weekly runs to rebuild the location database, and you probably don't > want to use the mount flags trick here. grep -v usually works wonders for me. MP=`mount -t ufs | sed 's;/dev/;&r;' | egrep -v ' on /news| on /nov ' | awk '{ print $3 }'` find ${SRCHPATHS} \! -fstype local -prune -or -print | \ egrep -v '^/news|^/nov' | \ etc. It ain't artsy, but it works. Incidentally: the latter find still traverses the spool. I don't really care. I just didn't want it adding boatloads of bloat, I don't care too much what disk I/O is like at 3AM. ... Joe ------------------------------------------------------------------------------- Joe Greco - Systems Administrator jgreco@ns.sol.net Solaria Public Access UNIX - Milwaukee, WI 414/342-4847