Date: Fri, 25 Jun 2010 09:01:46 +0700 From: "Anh Ky Huynh" <xkyanh@gmail.com> To: Martin McCormick <martin@dc.cis.okstate.edu> Cc: freebsd-questions@freebsd.org Subject: Re: sudo "last login" message and how to turn it off FreeBSD8.0 Message-ID: <20100625090146.367c67d5@icy.localdomain> In-Reply-To: <201006241841.o5OIf4BU089418@dc.cis.okstate.edu> References: <201006241841.o5OIf4BU089418@dc.cis.okstate.edu>
next in thread | previous in thread | raw e-mail | index | archive | help
On Thu, 24 Jun 2010 13:41:04 -0500 Martin McCormick <martin@dc.cis.okstate.edu> 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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20100625090146.367c67d5>