Subject: Re: Tracking user logins
To: Martti Kuparinen <martti.kuparinen@iki.fi>
From: Stefan Schumacher <stefan@net-tex.de>
List: netbsd-help
Date: 12/16/2003 11:41:31
--VbJkn9YxBvnuCH5J
Content-Type: text/plain; charset=iso-8859-1
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

* Martti Kuparinen (martti.kuparinen@iki.fi) wrote:

> What is the easiest way to gather this "last login" information in to a
> single place (maybe MySQL database)? All ideas are welcome...

stefan@AragornOfArathorn {3} lastlogin=20
root      ttyE1                       Tue Dec 16 10:18:15 2003
stefan    console                     Tue Dec 16 09:51:22 2003
test      ttyE2                       Mon Mar 24 12:27:10 2003

I guess a very small Perlskript that parses each line and compares the date
should able to `userdel` or dumping it into MySQL.

I'll try to write one this evening.


Stef
--=20
Ein Audi Quattro. Den hat auch der Kanzler, f=FCr seine R=FCcktritte. Wegen=
 des
R=FCckw=E4rtsgangs.

Harald Schmidt

--VbJkn9YxBvnuCH5J
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.3 (NetBSD)

iD8DBQE/3uFbEfTEHrP7rjMRArwFAJ9qssnfIaEY31guFlYaI1bPu+8H5gCeKF/w
BZCfDXDfoqxvfh80/ozagUs=
=G+vC
-----END PGP SIGNATURE-----

--VbJkn9YxBvnuCH5J--