SUMMARY: displaying last

From: David Minor <dminor_at_salud.unm.edu>
Date: Fri, 14 Jan 2000 13:53:20 -0700

OK. Well, I don't feel too dumb now. Turns out there
is no way to get last to display the entire hostname if it's
too long.

Several people responded that they had written their
own scripts or apps to handle this. Several others
mentioned different ways of using the /var/adm/wtmp
file, which contains the relevant info that last is using.

There are several ways to do this, depending on what
you are looking for. For instance, Phil Shirts recommended
the following commands which basically do what the last
command does:

who -M /var/adm/wtmp
or, more specifically,
who -M /var/adm/wtmp | grep <hostname fragment from 'last'>

A number of other people talked about implementing
TCP Wrappers as a better way in general to be aware of
and control who is accessing the system.

Because I have a few targeted people I'm trying to
track, Mr. Shirts' recommendation was
enough for my needs at the moment. But I think that
I will explore TCP Wrappers for future implentation.

THANKS again to everyone for responding....

david minor
health sciences center library
university of new mexico
Received on Fri Jan 14 2000 - 20:54:29 NZDT

This archive was generated by hypermail 2.4.0 : Wed Nov 08 2023 - 11:53:40 NZDT