From owner-freebsd-questions@FreeBSD.ORG Fri Jun 25 02:01:57 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 79CBD106566B for ; Fri, 25 Jun 2010 02:01:57 +0000 (UTC) (envelope-from xkyanh@gmail.com) Received: from mail-px0-f182.google.com (mail-px0-f182.google.com [209.85.212.182]) by mx1.freebsd.org (Postfix) with ESMTP id 47DB38FC16 for ; Fri, 25 Jun 2010 02:01:57 +0000 (UTC) Received: by pxi11 with SMTP id 11so644040pxi.13 for ; Thu, 24 Jun 2010 19:01:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:date:from:to:cc:subject :message-id:in-reply-to:references:organization:user-agent :x-operating-system:x-face:face:x-mailer:mime-version:content-type :content-transfer-encoding; bh=DCn1rXzJsfgqEhVoxxu+QG1Jo5WMU2MWZf6abOF9Ncg=; b=TT+rsHYFD6HiJw2atF4vBXaxL/jVZyxno8SmWrEwxfH0QtQdWQUlH/jabUSFgeLxpN W/Gip5DHeNVU8w0JgWorIKym6Caecx4zlhu0bEjUSa3WYr59D1HW6ZL2AM0b+aAy8JUG u1gZ3nZQjCoZXClLuaarA+qSgZyPTxgg9zMPk= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=date:from:to:cc:subject:message-id:in-reply-to:references :organization:user-agent:x-operating-system:x-face:face:x-mailer :mime-version:content-type:content-transfer-encoding; b=qLnW/XxAA8IRj9OdTWJrZQmeND4XJq895iKiuhk4/Y/XuTm2B+XZWPnGsFWg3srbzD XN3hGN+Vng54BAg8cs5VyUMYv2/k980qB6SXWjfE0rdRJzs1cTGpVl5NPD3MPGtWoOEt v0c0xJkIffuECgl5u32SvOl8TdEJWHkc7W9A8= Received: by 10.115.132.40 with SMTP id j40mr10657838wan.21.1277431316606; Thu, 24 Jun 2010 19:01:56 -0700 (PDT) Received: from icy.localdomain ([115.78.0.218]) by mx.google.com with ESMTPS id c22sm61011763wam.6.2010.06.24.19.01.54 (version=SSLv3 cipher=RC4-MD5); Thu, 24 Jun 2010 19:01:56 -0700 (PDT) Date: Fri, 25 Jun 2010 09:01:46 +0700 From: "Anh Ky Huynh" To: Martin McCormick Message-ID: <20100625090146.367c67d5@icy.localdomain> In-Reply-To: <201006241841.o5OIf4BU089418@dc.cis.okstate.edu> References: <201006241841.o5OIf4BU089418@dc.cis.okstate.edu> Organization: Vietnamese TeX Users Group User-Agent: FreeBSD X-Operating-System: FreeBSD X-Face: FreeBSD Face: FreeBSD X-Mailer: FreeBSD Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Cc: freebsd-questions@freebsd.org Subject: Re: sudo "last login" message and how to turn it off FreeBSD8.0 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: Fri, 25 Jun 2010 02:01:57 -0000 On Thu, 24 Jun 2010 13:41:04 -0500 Martin McCormick wrote: > I have actually seen this on some FreeBSD6.3 systems and thought > it was a querk. It may still be a querk but it has started again > on an 8.0 system. I think I am doing something to cause it, but > I am not sure. > > When one executes a sudo command, I get a "last login" > message which reflects the last time I ran sudo. Example: > > [martin@pilot ~]$ sudo whoami > Password: > Last login: Thu Jun 24 13:07:20 from pilot.it.okstate > root > > There is another FreeBSD8.0 system here that has not yet > behaved this way so I did something to the test system to make > it start. > > Any ideas as to what to look at? I experienced the same problem and I just disabled /var/log/{userlog,lastlog}: # ls -ltro /var/log/|grep uchg -rw------- 1 root wheel uappnd,uchg,uunlnk 1 May 9 08:59 userlog -rw-r--r-- 1 root wheel uappnd,uchg,uunlnk 1 May 9 18:50 lastlog Hope this helps. Regards, -- Anh Ky Huynh