RE: Re-generate lastlog

2005-07-01 Thread fbsd_user
touch /var/log/lastlog

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] Behalf Of Matt
Juszczak
Sent: Friday, July 01, 2005 3:31 PM
To: freebsd-questions@freebsd.org
Subject: Re-generate lastlog


Woops, I wiped out lastlog.

How do I regenerate it?
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to
"[EMAIL PROTECTED]"

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re-generate lastlog

2005-07-01 Thread Matt Juszczak

Woops, I wiped out lastlog.

How do I regenerate it?
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: lastlog

2004-09-19 Thread Matthew Seaman
On Sun, Sep 19, 2004 at 09:05:11PM +0800, John Lee wrote:

> How do i retrieve last login details for JUN-2004
> as I can only see SEP-04 now..
> 
> last | grep user --> only shows SEP i guess
> 
> How can i get JUNE?

Look at the saved copies of wtmp under /var/log.  Hmmm... By default
newsyslog(1) is setup to keep 4 old copies of the wtmp file around,
and to switch to a new file at the start of every month, so you should
have:

wtmp   September (ie. this month)
wtmp.0 August
wtmp.1 July
wtmp.2 June
wtmp.3 May

still on your system.  (Any earlier than May and you'ld have had to
retrieve the appropriate wtmp file from backup)

So, try:

last -f /var/log/wtmp.2 user

Cheers,

Matthew

-- 
Dr Matthew J Seaman MA, D.Phil.   26 The Paddocks
  Savill Way
PGP: http://www.infracaninophile.co.uk/pgpkey Marlow
Tel: +44 1628 476614  Bucks., SL7 1TH UK


pgptKQWlSOhnF.pgp
Description: PGP signature


lastlog

2004-09-19 Thread John Lee
Dear guys,

How do i retrieve last login details for JUN-2004
as I can only see SEP-04 now..

last | grep user --> only shows SEP i guess

How can i get JUNE?

Thanks!
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"