From owner-freebsd-bugs@FreeBSD.ORG Thu Jan 20 06:30:33 2005 Return-Path: Delivered-To: freebsd-bugs@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id AAA2016A4CE for ; Thu, 20 Jan 2005 06:30:33 +0000 (GMT) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8D6CC43D46 for ; Thu, 20 Jan 2005 06:30:33 +0000 (GMT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.1/8.13.1) with ESMTP id j0K6UXD5071501 for ; Thu, 20 Jan 2005 06:30:33 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.13.1/8.13.1/Submit) id j0K6UXf5071500; Thu, 20 Jan 2005 06:30:33 GMT (envelope-from gnats) Date: Thu, 20 Jan 2005 06:30:33 GMT Message-Id: <200501200630.j0K6UXf5071500@freefall.freebsd.org> To: freebsd-bugs@FreeBSD.org From: =?koi8-r?Q?=E1=CC=C5=CB=D3=C1=CE=C4=D2=20=F4=C9=C8=CF=CE=CF?=ff Subject: misc/76491 X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: =?koi8-r?Q?=E1=CC=C5=CB=D3=C1=CE=C4=D2=20=F4=C9=C8=CF=CE=CF?=ff List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 20 Jan 2005 06:30:33 -0000 The following reply was made to PR conf/76491; it has been noted by GNATS. From: =?koi8-r?Q?=E1=CC=C5=CB=D3=C1=CE=C4=D2=20=F4=C9=C8=CF=CE=CF?=ff To: FreeBSD-gnats-submit@FreeBSD.org Cc: Subject: misc/76491 Date: Thu, 20 Jan 2005 09:23:29 +0300 [PATCH] --- securityadd Sun Jan 9 12:31:46 2005 +++ security Sun Jan 9 12:31:46 2005 @@ -33,6 +33,8 @@ rc=0 LOG=/var/log TMP=/var/run/_secure.$$ +stoday="/var/log/localsec.today" # path to today security log +syester="/var/log/localsec.yesterday" #path to yesterday security log separator () { echo '' @@ -232,5 +234,34 @@ rm -f ${TMP} + rm $syester + mv $stoday $syester + + echo "stoday Log for:" >> ${stoday} + date >> ${stoday} + cat /etc/passwd | grep "guest" >> ${stoday} + cat /etc/passwd | grep "anonymous" >> ${stoday} + echo "File permission errors in /bin" >> ${stoday} + ls -l /bin | grep "rwx " >> ${stoday} + ls -l /bin | grep "rw- " >> ${stoday} + echo "File permission errors in /sbin" >> ${stoday} + ls -l /sbin | grep "rwx " >> ${stoday} + ls -l /sbin | grep "rw- " >> ${stoday} + echo "File permission errors in /etc" >> ${stoday} + ls -l /etc | grep "rwx " >> ${stoday} + ls -l /etc | grep "rw- " >> ${stoday} + echo "File permission errors in /usr/bin" >> ${stoday} + ls -l /usr/bin | grep "rwx " >> ${stoday} + ls -l /usr/bin | grep "rw- " >> ${stoday} + echo "File permission errors in /usr/sbin" >> ${stoday} + ls -l /usr/sbin | grep "rwx " >> ${stoday} + ls -l /usr/sbin | grep "rw- " >> ${stoday} + echo "File permission errors in /root" >> ${stoday} + ls -l /root | grep "rwx " >> ${stoday} + ls -l /root | grep "rw- " >> ${stoday} +echo "" + echo "Crashes?" >> ${stoday} + last | grep "crash" >> ${stoday} +cat $stoday exit $rc