From owner-freebsd-security Fri Jun 11 12: 1:30 1999 Delivered-To: freebsd-security@freebsd.org Received: from alice.gba.oz.au (gba-254.tmx.com.au [203.9.155.254]) by hub.freebsd.org (Postfix) with SMTP id 11F4714F01 for ; Fri, 11 Jun 1999 12:01:16 -0700 (PDT) (envelope-from gjb-freebsd@gba.oz.au) Received: (qmail 29860 invoked by uid 1001); 11 Jun 1999 01:54:30 -0000 Message-ID: <19990611015430.29859.qmail@alice.gba.oz.au> X-Posted-By: GBA-Post 1.03 20-Sep-1998 X-PGP-Fingerprint: 5A91 6942 8CEA 9DAB B95B C249 1CE1 493B 2B5A CE30 Date: Fri, 11 Jun 1999 11:54:29 +1000 From: Greg Black To: "Richard Childers" Cc: "Dmitriy Bokiy" , freebsd-security@FreeBSD.ORG Subject: Re: Newbie questions: DoS & xinetd References: <18819.990610@cityline.ru> <37600E33.9A11E641@hamquist.com> In-reply-to: <37600E33.9A11E641@hamquist.com> of Thu, 10 Jun 1999 12:12:51 MST Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: owner-freebsd-security@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org "Richard Childers" writes: > For instance, if I wanted to search for all occurrences of the string > "net.inet.ip.redirect", I would do: > > # find / -type f -exec grep -i "net.inet.ip.redirect" {} \; -print One word of caution for indiscriminate use of "find /" is that it can lead to long waits and lots of disk thrashing on machines with lots of files. Here's one I just ran: # /usr/bin/time find / -print | wc -l 3296.20 real 96.33 user 968.21 sys 711184 Obviously, to do something like run grep over however many of those 700k entries and <6GB of data that are actually files would add quite a bit to the 55 minutes the simple find took. Of course, this is not to argue that people should not look for answers on their machines. -- Greg Black -- or Fight censorship in Australia: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-security" in the body of the message