From owner-freebsd-hackers Sun Nov 2 01:39:16 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.7/8.8.7) id BAA12294 for hackers-outgoing; Sun, 2 Nov 1997 01:39:16 -0800 (PST) (envelope-from owner-freebsd-hackers) Received: from ic4.ic.dk (qmailr@t1p29.telia.dk [194.255.57.158]) by hub.freebsd.org (8.8.7/8.8.7) with SMTP id BAA12289 for ; Sun, 2 Nov 1997 01:39:13 -0800 (PST) (envelope-from jacob@jblhome.ping.dk) Received: (qmail 11299 invoked from network); 2 Nov 1997 09:27:27 -0000 Received: from ic1.ic.dk (193.88.65.12) by ic4.ic.dk with SMTP; 2 Nov 1997 09:27:27 -0000 Received: from jblhome by ic1.ic.dk with UUCP id AA23824 (5.65c8/IDA-1.4.4j); Sun, 2 Nov 1997 10:29:34 +0100 Received: (from jacob@localhost) by pippin.jblhome.ping.dk (8.8.7/8.7.3) id KAA23253; Sun, 2 Nov 1997 10:01:43 +0100 (CET) To: Brandon Gillespie Cc: Niall Smart , freebsd-hackers@FreeBSD.ORG Subject: Re: Suggested addition to /etc/security References: From: Jacob Bohn Lorensen Date: 02 Nov 1997 10:01:40 +0100 In-Reply-To: Brandon Gillespie's message of Sat, 1 Nov 1997 10:58:32 -0700 (MST) Message-Id: <87vhybr7nv.fsf@pippin.jblhome.ping.dk> Lines: 23 X-Mailer: Gnus v5.3/Emacs 19.34 X-Charset: ISO_8859-1 X-Char-Esc: 29 Sender: owner-freebsd-hackers@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk Brandon Gillespie writes: > On Sat, 1 Nov 1997, Niall Smart wrote: > > On Oct 30, 10:18am, Brandon Gillespie wrote: > > } Subject: Suggested addition to /etc/security > > > find / -nouser -nogroup > > Shouldn't this be "find / -nouser -o -nogroup -print"? > files=`find / -nouser -o -nogroup -print` > ls -ldF $files > (this looks better than find / -nouser -o -nogroup -exec ls -ldF {} \;) Please consider "find / -nouser -o -nogroup -ls"; this keeps consistent columnization (?) and also saves a bunch of exec() and stat() calls, not to mention the problems of calling ls from find with file names including blanks and shell meta-characters. -- Jacob Lorensen; Mosebuen 33, 1.; DK-2820 Gentofte, Denmark; +45-31560401 PGP ID = E596F0B5; PGP Fingerprint = 1E8726467436DC4A 723B6678C5AD9E71