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