From owner-freebsd-questions@FreeBSD.ORG Fri Jun 25 22:16:58 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 033E91065672 for ; Fri, 25 Jun 2010 22:16:58 +0000 (UTC) (envelope-from bf1783@googlemail.com) Received: from mail-ww0-f54.google.com (mail-ww0-f54.google.com [74.125.82.54]) by mx1.freebsd.org (Postfix) with ESMTP id 8E2568FC21 for ; Fri, 25 Jun 2010 22:16:57 +0000 (UTC) Received: by wwb24 with SMTP id 24so3117450wwb.13 for ; Fri, 25 Jun 2010 15:16:56 -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 :in-reply-to:references:date:message-id:subject:from:to:cc :content-type; bh=WuouIPv9h4/oAYy/Id278ziPcDlT+yL+H4258sVfPAI=; b=rmkNzLjXTE0EG7qC1Zd0m4WjwM0t/1CYC2W5LiSVO+BnMIUk1UbFe2VuhwPeiSAjKK tw6/ylSdLSavRJNW7hbwtnxq1UeYZ0x/yzqpwGtQrV8cP40hjE1vFIdbdzCVTRFwLKcO OZh9MyZ9+nd64MvlnaBaoY+SURJRrXT2GAkuE= DomainKey-Signature: a=rsa-sha1; c=nofws; d=googlemail.com; s=gamma; h=mime-version:reply-to:in-reply-to:references:date:message-id :subject:from:to:cc:content-type; b=HoB4m3oGfr/1fNbUvg4W9gq9pa8qhSpKjCj0ct2bdTU9c6BI3OEeKp9NCb2fY+5JtR kr1ArIfdpGCHCEvzjoVIMRYZ8Nx7zdLFb+ZbiUU4De3yTtzwXkND+Jx/oN21rDvfZ3JA X2oTYjJKXD1v+N+P4qWr9kd3QEXjiHYh13rRE= MIME-Version: 1.0 Received: by 10.216.86.199 with SMTP id w49mr1025394wee.84.1277504216684; Fri, 25 Jun 2010 15:16:56 -0700 (PDT) Received: by 10.216.230.71 with HTTP; Fri, 25 Jun 2010 15:16:56 -0700 (PDT) In-Reply-To: References: Date: Fri, 25 Jun 2010 18:16:56 -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 22:16:58 -0000 On 6/25/10, b. f. wrote: > 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 ... > 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. I should be more specific: I think you should be able to disable the message by commenting out the lines that refer to pam_lastlog.so in /etc/pam.d/system, /etc/pam.d/xdm, and /etc/pam.d/telnetd. But in doing so, you will lose some of the security and accounting benefits of last(1) and friends. Is it really worth it, just to silence some console messages? In any event, don't tinker with your kernel because of this. It won't help, and it may break your system. b.