From owner-freebsd-questions@FreeBSD.ORG Fri Jun 25 21:35:37 2010 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 7FAF01065672 for ; Fri, 25 Jun 2010 21:35:37 +0000 (UTC) (envelope-from bf1783@googlemail.com) Received: from mail-wy0-f182.google.com (mail-wy0-f182.google.com [74.125.82.182]) by mx1.freebsd.org (Postfix) with ESMTP id 176178FC1C for ; Fri, 25 Jun 2010 21:35:36 +0000 (UTC) Received: by wyf22 with SMTP id 22so1740512wyf.13 for ; Fri, 25 Jun 2010 14:35:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=gamma; h=domainkey-signature:mime-version:received:received:reply-to:date :message-id:subject:from:to:cc:content-type; bh=zrCgWpEjySoEaAa/CaG+57ndkRwVHcCtyk0RruoqRp0=; b=mhfH2KsVg/RWRfJZr8ZrNn4NpgED1oTofyBVpAoAJqxz7iPXLubbyVg+iDaiTJp4Pf E2+DsilIfWyxWt8tPOFOPM9d1sRXppOXb+nDDUMegYGyuAQKS/mcsOALqftHD3Xlqn/C U43f4S90v14XSqYPP+Cfjw42OImO8u9YuxNsA= DomainKey-Signature: a=rsa-sha1; c=nofws; d=googlemail.com; s=gamma; h=mime-version:reply-to:date:message-id:subject:from:to:cc :content-type; b=rvGyuqB2WDGhiw/M8g3dTJkf6fdPWBiVJEtvoYxA9jk/Eb4DLvVE1Tm9yw7qpIpTba 1YvdBSJ2oXAcm9M23oxFSQoZppugS+3n+2RzEFGP5xDIxLDSCO1egNTsmAvucXz8v6ia MK//dEIbBoJSkZGx0Lc8NdggeTVDbtotzH5qU= MIME-Version: 1.0 Received: by 10.227.127.83 with SMTP id f19mr1077389wbs.83.1277501735987; Fri, 25 Jun 2010 14:35:35 -0700 (PDT) Received: by 10.216.230.71 with HTTP; Fri, 25 Jun 2010 14:35:35 -0700 (PDT) Date: Fri, 25 Jun 2010 17:35:35 -0400 Message-ID: From: "b. f." To: Martin McCormick Content-Type: text/plain; charset=ISO-8859-1 Cc: freebsd-questions@FreeBSD.org Subject: Re: Running an Old Kernel X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: bf1783@gmail.com List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 25 Jun 2010 21:35:37 -0000 Martin McCormick wrote: > I have been attempting to shut off that "last login" message > that occurs on some FreeBSD systems every time one runs a sudo > command. I decided to bring back the last kernel which was the > original Generic kernel from the FreeBSD distribution disk for > FreeBSD8.0 to see if the problem went away. If it did, that > would indicate that the problem starts after one applies the > latest patches and rebuilds the kernel. > > The handbook covers building a new kernel very well, but > I appear to be missing something. In /boot is loader and > loader.old. Isn't loader.old the image of the previous kernel? I > copied loader to loader.new since it should be the current image > and then copied loader.old to loader and rebooted. > I don't think you've read the sections regarding kernel very carefully. The loader is built and installed as part of buildworld and installworld, not buildkernel or installkernel. It is not the kernel, which is usually installed in /boot/kernel, with the old kernel usually being moved to /boot/kernel.old when a new kernel is installed. > The "last login" message was still there and dmesg still > showed the production date of the new kernel. In other words, > nothing changed. > > Shouldn't I have seen the production date of the > original kernel? Thank you. > > I have actually built many kernels and most were simply > a rebuild of the generic kernel after applying patches so I > don't roll back a kernel very often. Fortunately, both the old > and new kernels work. I think the "last login" nuisance started > right after installing the patched kernel. > Why on earth are you tinkering with your kernels in order to change sudo output? You should instead be editing configuration files associated with sudo and related base system utilities, or patching sudo. b.