From owner-freebsd-questions@FreeBSD.ORG Thu Apr 3 23:17:04 2008 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 89A671065691 for ; Thu, 3 Apr 2008 23:17:04 +0000 (UTC) (envelope-from david.robillard@gmail.com) Received: from wx-out-0506.google.com (wx-out-0506.google.com [66.249.82.234]) by mx1.freebsd.org (Postfix) with ESMTP id 39E598FC69 for ; Thu, 3 Apr 2008 23:17:04 +0000 (UTC) (envelope-from david.robillard@gmail.com) Received: by wx-out-0506.google.com with SMTP id i29so3757703wxd.7 for ; Thu, 03 Apr 2008 16:17:03 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:cc:mime-version:content-type:content-transfer-encoding:content-disposition; bh=4KvZMPLVAgPYuloh2wlRXxer6nxrW0YbvjlRjvbcZtc=; b=X+1xPJQGtuAmup4w0Hud6n5owAuADqPgWhXKJK+uvdFJ56JpXJpGqhoWCHHs9neEYohvSIImUEPeBayJ2LgdD5atjJj4h42Wpsekou9kMd1gn2qkULgmtwm59vsOOADFO+q4QOPXWC1e7QqAv6HdHRtRSjK4hx5y8qfYlDrzXbI= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=message-id:date:from:to:subject:cc:mime-version:content-type:content-transfer-encoding:content-disposition; b=N9BEb4bvHK/BikY8Hl7ClIBBBtyTNbcNcDuJVqIzGkfOHSkQ9ZBybvjN7qaW1W78lHQS0deF9riyexfk+PurOT0PAAC0yXw6E4hbqwjOkbT/wOlRAln8apAznau7TMkFbc9n1khn+tF3hbIGoiK0Mzoymd6P4Kzgu1zz/Ac3BGc= Received: by 10.141.113.6 with SMTP id q6mr276652rvm.135.1207264623118; Thu, 03 Apr 2008 16:17:03 -0700 (PDT) Received: by 10.140.192.18 with HTTP; Thu, 3 Apr 2008 16:17:03 -0700 (PDT) Message-ID: <226ae0c60804031617q5f44c0f5jb1ba562a4406ff59@mail.gmail.com> Date: Thu, 3 Apr 2008 19:17:03 -0400 From: "David Robillard" To: "Martin McCormick" MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline Cc: FreeBSD Questions Subject: Re: Sudo Commands on New 6.2 System Cause Last Login Message. 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: Thu, 03 Apr 2008 23:17:04 -0000 > The commands always work but I would rather not get that message > each time. Am I missing something obvious? A quick google search will show you that it's the ${LOCALBASE}/etc/pam.d/sudo file which is the root of your "problem". It's pam_lastlog(8) which makes the message. If you don't need it, comment out the... session include system ... line in ${LOCALBASE}/etc/pam.d/sudo to get rid of this behavior. Cheers, David -- David Robillard UNIX systems administrator & Oracle DBA CISSP, RHCE & Sun Certified Security Administrator Montreal: +1 514 966 0122