Re: How Do i get last lgin date for all my users

2013-04-13 Thread Charles Bradshaw
Attached is a little perl script which parses /var/log/maillog and lists the last time users logged in. It can be easily adapted to do an in depth scan any/all log file. On Thu, 2013-04-11 at 10:15 +0200, Marc Patermann wrote: Dale J Chatham schrieb (10.04.2013 21:49 Uhr): Assuming

Re: How Do i get last lgin date for all my users

2013-04-13 Thread Adam Tauno Williams
On Sat, 2013-04-13 at 12:56 +0100, Charles Bradshaw wrote: Attached is a little perl script which parses /var/log/maillog and lists the last time users logged in. This seems very unreliable, slow, and hacky. When I login to my e-mail the system typically tells me the last time I logged in [at

Re: How Do i get last lgin date for all my users

2013-04-13 Thread Chris Conn
On 2013-04-13 09:26, Adam Tauno Williams wrote: On Sat, 2013-04-13 at 12:56 +0100, Charles Bradshaw wrote: This seems very unreliable, slow, and hacky. When I login to my e-mail the system typically tells me the last time I logged in [at least to that app]. Doesn't the meta-data in the IMAP

Re: How Do i get last lgin date for all my users

2013-04-13 Thread Charles Bradshaw
Humm.. definitely it's a hack, but hay it works. Slow because every line of the log must be examined and there could be many thousands. Why would anybody care if it's slow? It's only unreliable in the context of different log formats, so modify it to your requirements. ;-) It doesn't necessarily

Re: How Do i get last lgin date for all my users

2013-04-11 Thread Marc Patermann
Dale J Chatham schrieb (10.04.2013 21:49 Uhr): Assuming Linux?UNIX, log onto the machine, run the command: last This does only work, if IMAP users are system users - which most of the time is not the case. Perl is your friend. Pass your imap log for User logged in. Extract username and

Re: How Do i get last lgin date for all my users

2013-04-11 Thread Charles Bradshaw
Your maillog contains the info you require. As root on a linux install try: # cat /var/log/maillog | grep login Which should give you a list of all login details up to the last date stamp on maillog (or whatever your log file is named). Your syslog is your friend. Brad On Thu, 2013-04-11

Re: How Do i get last lgin date for all my users

2013-04-11 Thread Dale J Chatham
With the caveat that on most Linux systems, the logs roll at 0400 Sunday morning. Logs contain info from the previous Sunday onward, so you may have to go through maillog, maillog.1, maillog.2 and so on to get info on users who logon inrequently. On 04/11/2013 07:42 AM, Charles Bradshaw wrote:

How Do i get last lgin date for all my users

2013-04-10 Thread Santos Ramirez
Good Afternoon, I am hoping that someone can help in getting last login date for all of my users. I know about the .seen files. Is there a better more exact utility that I can use. Thank you in advance for any and all help. Santos U. Ramirez Linux Systems Administrator National DCP, LLC

Re: How Do i get last lgin date for all my users

2013-04-10 Thread Dale J Chatham
Assuming Linux?UNIX, log onto the machine, run the command: last Take the newest entry for each user. Perl is your friend. On 04/10/2013 12:51 PM, Santos Ramirez wrote: Good Afternoon, I am hoping that someone can help in getting last login date for all of my users. I know about the