home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #19 / NN_1992_19.iso / spool / comp / unix / admin / 4718 < prev    next >
Encoding:
Text File  |  1992-08-27  |  1.5 KB  |  42 lines

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