[Frederik]
> Hello again.
> Is there an easy way to get some statistics on who has logged in to
> the system - preferably by email?
This one-liner will fetch how many have logged in so far from the auth
log:
grep 'session open' /var/log/auth.log | grep "^$(date +"%b %e")" | \
grep -v CRON | egrep -v 'root|munin|daemon|nobody'| \
rev | awk '{print $3}' | rev | sort -u | wc -l
Perhaps you can use it as a starting point?
Happy hacking,
--
Petter Reinholdtsen