tru64-unix-managers (formerly alpha-osf-managers) (1994-2012)
 help / color / mirror / Atom feed
* SUMMARY: displaying last
@ 2000-01-14 20:53 David Minor
  0 siblings, 0 replies; only message in thread
From: David Minor @ 2000-01-14 20:53 UTC (permalink / raw)
  To: tru64-unix-managers

OK. Well, I don't feel too dumb now. Turns out there=20
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=20
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=20
and control who is accessing the system.

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

THANKS again to everyone for responding....

david minor
health sciences center library
university of new mexico

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2000-01-14 20:53 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2000-01-14 20:53 SUMMARY: displaying last David Minor

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox