Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 3 Apr 2008 19:17:03 -0400
From:      "David Robillard" <david.robillard@gmail.com>
To:        "Martin McCormick" <martin@dc.cis.okstate.edu>
Cc:        FreeBSD Questions <freebsd-questions@freebsd.org>
Subject:   Re: Sudo Commands on New 6.2 System Cause Last Login Message.
Message-ID:  <226ae0c60804031617q5f44c0f5jb1ba562a4406ff59@mail.gmail.com>

next in thread | raw e-mail | index | archive | help
> 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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?226ae0c60804031617q5f44c0f5jb1ba562a4406ff59>