Subject: Re: Last users today
To: NetBSD User's Discussion List <firstname.lastname@example.org>
From: Andrew Brown <email@example.com>
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" >-----|
firstname.lastname@example.org * "ah! i see you have the internet
email@example.com (Andrew Brown) that goes *ping*!"
firstname.lastname@example.org * "information is power -- share the wealth."