How Do i get last lgin date for all my users

Adam Tauno Williams awilliam at whitemice.org
Sat Apr 13 09:26:45 EDT 2013


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 least to
that app].  Doesn't the meta-data in the IMAP server 'know' this
information?

The underlying authentication system [PAM via lastlog, etc...] might
also have this information.  If your authentication system is LDAP then
the DSA might know this as well.

> > > 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.

Yep.



More information about the Info-cyrus mailing list