From owner-freebsd-stable@FreeBSD.ORG Fri Feb 29 21:07:39 2008 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id F258F1065675 for ; Fri, 29 Feb 2008 21:07:39 +0000 (UTC) (envelope-from uspoerlein@gmail.com) Received: from acme.spoerlein.net (acme.spoerlein.net [217.172.44.86]) by mx1.freebsd.org (Postfix) with ESMTP id 80BD58FC28 for ; Fri, 29 Feb 2008 21:07:39 +0000 (UTC) (envelope-from uspoerlein@gmail.com) Received: from roadrunner.spoerlein.net (e180160048.adsl.alicedsl.de [85.180.160.48]) by acme.spoerlein.net (8.14.1/8.14.1) with ESMTP id m1TL7QjB054134 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Fri, 29 Feb 2008 22:07:28 +0100 (CET) (envelope-from uspoerlein@gmail.com) Received: from roadrunner.spoerlein.net (localhost [127.0.0.1]) by roadrunner.spoerlein.net (8.14.2/8.14.2) with ESMTP id m1TL7ORt006683 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Fri, 29 Feb 2008 22:07:24 +0100 (CET) (envelope-from uspoerlein@gmail.com) Received: (from uqs@localhost) by roadrunner.spoerlein.net (8.14.2/8.14.2/Submit) id m1TL7N1H006681; Fri, 29 Feb 2008 22:07:23 +0100 (CET) (envelope-from uspoerlein@gmail.com) Date: Fri, 29 Feb 2008 22:07:23 +0100 From: Ulrich Spoerlein To: Thomas Krause Message-ID: <20080229210722.GA1524@roadrunner.spoerlein.net> Mail-Followup-To: Thomas Krause , freebsd-stable@freebsd.org References: <1784.217.188.193.85.1204285931.squirrel@mta.webmatic.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1784.217.188.193.85.1204285931.squirrel@mta.webmatic.de> User-Agent: Mutt/1.5.17 (2007-11-01) Cc: freebsd-stable@freebsd.org Subject: Re: $HOME changed from 6.2 to 6.3 and 7.0 ?! X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 29 Feb 2008 21:07:40 -0000 On Fri, 29.02.2008 at 12:52:11 +0100, Thomas Krause wrote: > Dear list, > > after upgrading from 6.2R to 6.3R my daily jobs, which are normaly > executed from /etc/daily.local, are not longer started. > The entry in daily.local is > $HOME/bin/save-conf.sh > 6.2R executed /root/bin/save-conf.sh > 6.3R (and 7.0R) tries to start /var/log/bin/save-conf.bin > > Why? I cannot find such a homedir in /etc/passwd! Wrong place to look, it is set via /etc/crontab: % more /etc/crontab # /etc/crontab - root's crontab for FreeBSD # # $FreeBSD: src/etc/crontab,v 1.32 2002/11/22 16:13:39 tom Exp $ # SHELL=/bin/sh PATH=/etc:/bin:/sbin:/usr/bin:/usr/sbin HOME=/var/log # # ... # # Perform daily/weekly/monthly maintenance. 1 3 * * * root periodic daily 15 4 * * 6 root periodic weekly 30 5 1 * * root periodic monthly If this has changed from before, I guess it would be due to a new shell forking which always reset $HOME. Thus, it only worked before by sheer luck :) Cheers, Ulrich Spoerlein -- It is better to remain silent and be thought a fool, than to speak, and remove all doubt.