Subject: Re: Last users today
To: NetBSD User's Discussion List <email@example.com>
From: Andrew Brown <firstname.lastname@example.org>
Date: 01/22/2002 21:00:07
>> I'd like to add a section to my daily security output, listing all users who
>> have, or are, logged in during the day. Unfortunately, there doesn't seem to
>> be any facility in last(1) for that. How would I go about solving this in a
>> simple way? It might even be an area of future improvement in last. =)
>Assuming you have newsyslog configured to roll your wtmp file over at
>midnight, but not to compress it, and that /etc/daily runs sometime
>after midnight, then adding the following to /etc/daily.local will do
> /usr/sbin/ac -d -w /var/log/wtmp.0
since the requirement was for "users who have, or are, logged in
during the day", will this emit the names of users who have been
logged in for three months?
|-----< "CODE WARRIOR" >-----|
email@example.com * "ah! i see you have the internet
firstname.lastname@example.org (Andrew Brown) that goes *ping*!"
email@example.com * "information is power -- share the wealth."