Subject: Re: tracking logins
From: Cliff Crawford (cjc26@cornell.edu)
Date: Wed Apr 25 2001 - 10:36:59 EDT
* R Cent <cent@u.washington.edu> menulis:
>
> Hi,
>
> What is the best way to determine the last time a Mac user has
> logged into a linux server? Logging in through Netatalk does
> not record information that the "finger" command can show.
> Thanks.
Each login is recorded in /var/log/messages, and looks something like
this:
Apr 25 10:04:08 <hostname> afpd[30447]: ASIP session:548(2) from
<ip address>:49155(0)
Apr 25 10:04:08 <hostname> afpd[30447]: dhx login: <username>
Apr 25 10:04:08 <hostname> PAM_pwdb[30447]: (netatalk) session opened for user
<username> by (uid=0)
Apr 25 10:04:08 <hostname> afpd[30447]: login <username> (uid 135, gid 111)
(Where <hostname> is the hostname of the linux server, <username> is who
logged in, and <ip address> is the ip address of the mac they logged in
from.) So you could write a perl script or something to grep
/var/log/messages for the user in question.
-- Cliff Crawford http://www.sowrong.org/ birthday party cheesecake jellybean BOOM
This archive was generated by hypermail 2b28 : Sun Oct 14 2001 - 03:04:37 EDT