home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.unix.admin
- Path: sparky!uunet!paladin.american.edu!darwin.sura.net!wupost!usc!sol.ctr.columbia.edu!eff!news.oc.com!convex!tchrist
- From: Tom Christiansen <tchrist@convex.COM>
- Subject: Re: SECURITY -- How to list files having suid
- Originator: tchrist@pixel.convex.com
- Sender: usenet@news.eng.convex.com (news access account)
- Message-ID: <1992Aug27.222340.15355@news.eng.convex.com>
- Date: Thu, 27 Aug 1992 22:23:40 GMT
- Distribution: world,local
- Reply-To: tchrist@convex.COM (Tom Christiansen)
- References: <dtb.714875229@otto> <1992Aug27.181633.6131@odin.corp.sgi.com> <az!1Hrcg89@atlantis.psu.edu>
- Nntp-Posting-Host: pixel.convex.com
- Organization: Convex Computer Corporation, Colorado Springs, CO
- X-Disclaimer: This message was written by a user at CONVEX Computer
- Corp. The opinions expressed are those of the user and
- not necessarily those of CONVEX.
- Lines: 23
-
- From the keyboard of barr@pop.psu.edu (David Barr):
- :In article <1992Aug27.181633.6131@odin.corp.sgi.com> trant@sgi.com writes:
- :>I like COPS also, but.
- :>find / -user root -perm -4000 -exec ls -l {} \; | mail trant
- :
- :or even better:
- :
- :find / -user root -perm -4000 -ls | mail trant
- :
- :(are there find's that don't have the '-ls' option?)
-
- Sadly.
-
- If you're on such a system, and you have perl, you can do this:
-
- find2perl / -user root -perm -4000 -ls | perl
-
- --tom
- --
- Tom Christiansen tchrist@convex.com convex!tchrist
-
- "* Unix is a footnote of AT&T Bell Laboratories."
- --Barry Shein
-