View | Details | Raw Unified | Return to bug 76491
Collapse All | Expand All

(-)security (+31 lines)
Lines 33-38 Link Here
33
rc=0
33
rc=0
34
LOG=/var/log
34
LOG=/var/log
35
TMP=/var/run/_secure.$$
35
TMP=/var/run/_secure.$$
36
stoday="/var/log/localsec.today" 		# path to today security log
37
syester="/var/log/localsec.yesterday"		#path to yesterday security log
36
38
37
separator () {
39
separator () {
38
	echo ''
40
	echo ''
Lines 232-236 Link Here
232
234
233
rm -f ${TMP}
235
rm -f ${TMP}
234
236
237
 rm $syester
238
 mv $stoday $syester
239
240
  echo "stoday Log for:" >> ${stoday}
241
  date >> ${stoday}
242
  cat /etc/passwd | grep "guest" >> ${stoday}
243
  cat /etc/passwd | grep "anonymous" >> ${stoday}
244
  echo "File permission errors in /bin" >> ${stoday}
245
  ls -l /bin | grep "rwx  " >> ${stoday}
246
  ls -l /bin | grep "rw-  " >> ${stoday}
247
  echo "File permission errors in /sbin" >> ${stoday}
248
  ls -l /sbin | grep "rwx  " >> ${stoday}
249
  ls -l /sbin | grep "rw-  " >> ${stoday}
250
  echo "File permission errors in /etc" >> ${stoday}
251
  ls -l /etc | grep "rwx  " >> ${stoday}
252
  ls -l /etc | grep "rw-  " >> ${stoday}
253
  echo "File permission errors in /usr/bin" >> ${stoday}  
254
  ls -l /usr/bin | grep "rwx  " >> ${stoday}
255
  ls -l /usr/bin | grep "rw-  " >> ${stoday}
256
  echo "File permission errors in /usr/sbin" >> ${stoday}  
257
  ls -l /usr/sbin | grep "rwx  " >> ${stoday}
258
  ls -l /usr/sbin | grep "rw-  " >> ${stoday}
259
  echo "File permission errors in /root" >> ${stoday}  
260
  ls -l /root | grep "rwx  " >> ${stoday}
261
  ls -l /root | grep "rw-  " >> ${stoday}
262
echo ""
263
  echo "Crashes?" >> ${stoday}
264
  last | grep "crash" >> ${stoday}  
265
cat $stoday
235
exit $rc
266
exit $rc

Return to bug 76491