From owner-freebsd-questions@FreeBSD.ORG Mon Dec 2 00:27:30 2013 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 5D5D45AF for ; Mon, 2 Dec 2013 00:27:30 +0000 (UTC) Received: from know-smtprelay-omc-10.server.virginmedia.net (know-smtprelay-omc-10.server.virginmedia.net [80.0.253.74]) by mx1.freebsd.org (Postfix) with ESMTP id C632011BB for ; Mon, 2 Dec 2013 00:27:29 +0000 (UTC) Received: from amd.asgard.uk ([92.238.71.115]) by know-smtprelay-10-imp with bizsmtp id wQTJ1m00l2VE8Jc01QTLKB; Mon, 02 Dec 2013 00:27:22 +0000 X-Originating-IP: [92.238.71.115] X-Spam: 0 X-Authority: v=2.1 cv=Qfbov6rv c=1 sm=1 tr=0 a=kgu37eZCuzjHC/BLjkfnNA==:117 a=kgu37eZCuzjHC/BLjkfnNA==:17 a=mSnCZvPJBnkA:10 a=g8DGSEr-gRIA:10 a=z6OmtuC8ihAA:10 a=8nJEP1OIZ-IA:10 a=U4kjxnpeAAAA:8 a=RIXHdJ6alCwA:10 a=4tpR3mDfRd9YyhtnVWEA:9 a=wPNLvfGTeEIA:10 From: dgmm To: freebsd-questions@freebsd.org Subject: Re: System reboots ~3am during daily periodic 450.status-security run Date: Mon, 2 Dec 2013 00:27:18 +0000 User-Agent: KMail/1.13.7 (FreeBSD/9.1-RELEASE-p7; KDE/4.10.5; amd64; ; ) References: <201312012352.01075.freebsd01@dgmm.net> In-Reply-To: <201312012352.01075.freebsd01@dgmm.net> MIME-Version: 1.0 Content-Type: Text/Plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Message-Id: <201312020027.18293.freebsd01@dgmm.net> X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.16 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 02 Dec 2013 00:27:30 -0000 On Sunday 01 December 2013 23:52:00 dgmm wrote: > My system reboots at 3am when /etc/periodic/daily/450.status-security I've now narrowed it down to: /etc/periodic/security/100.chksetuid ...but have no idea why it might a catastophic crash/reboot. #!/bin/sh - ... # $FreeBSD: release/9.1.0/etc/periodic/security/100.chksetuid 175906 2008-02-03 00:33:05Z des $ # # If there is a global system configuration file, suck it in. # if [ -r /etc/defaults/periodic.conf ] then . /etc/defaults/periodic.conf source_periodic_confs fi . /etc/periodic/security/security.functions rc=0 case "$daily_status_security_chksetuid_enable" in [Yy][Ee][Ss]) echo "" echo 'Checking setuid files and devices:' MP=`mount -t ufs,zfs | awk '$0 !~ /no(suid|exec)/ { print $3 }'` find -sx $MP /dev/null -type f \ \( -perm -u+x -or -perm -g+x -or -perm -o+x \) \ \( -perm -u+s -or -perm -g+s \) -exec ls -liTd \{\} \+ | check_diff setuid - "${host} setuid diffs:" rc=$? ;; *) rc=0 ;; esac exit $rc