From owner-freebsd-questions@FreeBSD.ORG Sun Nov 15 22:58:59 2009 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id D66C3106566B for ; Sun, 15 Nov 2009 22:58:59 +0000 (UTC) (envelope-from mel.flynn+fbsd.questions@mailing.thruhere.net) Received: from mailhub.rachie.is-a-geek.net (rachie.is-a-geek.net [66.230.99.27]) by mx1.freebsd.org (Postfix) with ESMTP id A480C8FC08 for ; Sun, 15 Nov 2009 22:58:59 +0000 (UTC) Received: from smoochies.rachie.is-a-geek.net (mailhub.rachie.is-a-geek.net [192.168.2.11]) by mailhub.rachie.is-a-geek.net (Postfix) with ESMTP id 1C1A27E854; Sun, 15 Nov 2009 13:58:58 -0900 (AKST) From: Mel Flynn To: freebsd-questions@freebsd.org Date: Sun, 15 Nov 2009 23:58:57 +0100 User-Agent: KMail/1.12.1 (FreeBSD/8.0-RC1; KDE/4.3.1; i386; ; ) References: <200911151830.02578.oloringr@gmail.com> <200911152312.22646.mel.flynn+fbsd.questions@mailing.thruhere.net> <200911160038.10993.oloringr@gmail.com> In-Reply-To: <200911160038.10993.oloringr@gmail.com> MIME-Version: 1.0 Content-Type: Text/Plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Message-Id: <200911152358.57050.mel.flynn+fbsd.questions@mailing.thruhere.net> Cc: Ed Jobs Subject: Re: weird save-entropy behaviour X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 15 Nov 2009 22:58:59 -0000 On Sunday 15 November 2009 23:38:10 Ed Jobs wrote: > On Monday 16 November 2009 00:12, Mel Flynn wrote: > > Did the operator uid change or perhaps shared with another uid? > > Check both `id operator` and `id 2`. > > > > Secondly, why did this stop? Seems like a weird question to ask, but > > since this script is supposed to run every 11 minutes, there should not > > be a reason for this to stop, if there's a race condition. > > # id operator > uid=2(operator) gid=5(operator) groups=5(operator) > # id 2 > uid=2(operator) gid=5(operator) groups=5(operator) > > As for the orer part, why did it stop, i really have no clue. All the > messages arrived at root's mailbox at 5:57, tho the date in them said that > they were sent at 5:50. > It's really strange because I was locked out from the computer at 2:29, so > it's not something I did. and there's nothing that cron runs at that time. Does the cron log (/var/log/cron) show that it was run as operator around the time it started? /usr/sbin/cron[47350]: (operator) CMD (/usr/libexec/save-entropy) Even if it wasn't, I don't see a reason for such a buildup. Unless....since stdin isn't sending anything, it could be the scripts wait indefinitely for user confirmation, then finally get killed off by some limit. There should be some hint at that in /var/log/messages around 5:50. The script should probably do mv -f in line 76. -- Mel