home *** CD-ROM | disk | FTP | other *** search
/ The World of Computer Software / World_Of_Computer_Software-02-385-Vol-1of3.iso / c / cops_104.zip / cops_104 / extra_src / stop.make < prev    next >
Text File  |  1992-03-10  |  532b  |  16 lines

  1. #! /bin/sh 
  2. #  stop.make  1.0       Allen-Bradley D818 Michael Reynolds     9-17-91
  3. #
  4. #  Creates a stop file from the current suid and sgid programs on the system.
  5. #  You need to be in the cops directory to run this.  
  6. #
  7. SECURE=`grep 'SECURE=' suid.chk | cut -f2 -d=`
  8. STOPFILE=`grep 'STOP=' suid.chk | cut -f2 -d=`
  9. SEARCH=`grep 'SEARCH=' suid.chk | cut -f2 -d=`
  10. #
  11.  
  12. #
  13. # Replace with any options you like, of course.... (dan)
  14. #
  15. find $SEARCH \( -perm -4000 -o -perm -2000 \) -fstype 4.2 ! -type d -exec /bin/ls -lgad {} \; > $STOPFILE
  16.