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 >
Wrap
Text File
|
1992-03-10
|
532b
|
16 lines
#! /bin/sh
# stop.make 1.0 Allen-Bradley D818 Michael Reynolds 9-17-91
#
# Creates a stop file from the current suid and sgid programs on the system.
# You need to be in the cops directory to run this.
#
SECURE=`grep 'SECURE=' suid.chk | cut -f2 -d=`
STOPFILE=`grep 'STOP=' suid.chk | cut -f2 -d=`
SEARCH=`grep 'SEARCH=' suid.chk | cut -f2 -d=`
#
#
# Replace with any options you like, of course.... (dan)
#
find $SEARCH \( -perm -4000 -o -perm -2000 \) -fstype 4.2 ! -type d -exec /bin/ls -lgad {} \; > $STOPFILE