for i in `cat /etc/passwd|cut -d":" -f1`
do
last -n 1 $i
done | grep -v begins | grep -v "^$"
[code]
[b]last -n 1 username[/b] displays the last 1 login of the specified user. The 2 greps at the end are just to tidy up the output.
Greg.