Thank you Per. I took the -f option, and wrote a script to do this for me - not very pretty, but it does the job. Basic steps I followed: 1. copied all the compressed (.gz) files into a temporary folder 2. unzipped all of them 3. for i in `ls -la wtmp* | awk '{print $9}'` do last -f $i my_login done -----Original Message----- From: Per Jessen [mailto:per@computer.org] Sent: 24 April 2008 12:33 PM To: opensuse@opensuse.org Subject: Re: [opensuse] /var/log/wtmp (rotated files & "last") Dirk Moolman wrote:
I have found the old (rotated) wtmp files (a sample is listed below)
Question: The "last" command only reads from /var/log/wtmp. How can I get last to also read from the old log files ..... my problem is that I need login history on a specific login for the last 6 months.
You can use the '-f' option on last or you can just zgrep through the rotated logfiles. /Per Jessen, Z+APw-rich -- To unsubscribe, e-mail: opensuse+-unsubscribe@opensuse.org For additional commands, e-mail: opensuse+-help@opensuse.org *** Disclaimer *** The information contained in this e-mail is confidential and legally privileged and is intended solely for the addressee and to others who have the authority to receive it. Access to this e-mail by anyone else is unauthorized and as such, any disclosure, copying, distribution or any action taken or omitted in reliance on it is unlawful. If you have received this e-mail in error, please notify the sender immediately. The views expressed in this e-mail are the views of the individual sender and should in no way be construed as the views of the Company. The Company is not liable to ensure that outgoing e-mails are virus-free. The Company is not liable, should information or data, for whatever reason, be corrupted or fail to reach its intended addressee. The Company is not liable for any loss or damage of whatsoever nature and howsoever arising resulting from the opening or the use of the information in this e-mail, including its attachments and links. The sender of this e-mail is subject to and bound by the terms and conditions of Company+IBk-s Electronic Communications Usage Policy. -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org