Question About Tracking Total Login Time

Gavin McCullagh gmccullagh at
Mon Aug 20 14:08:35 BST 2007


On Mon, 20 Aug 2007, jbarry wrote:

> 1. My question is which package do I install so that I can track the total
> hours spent by a user.
>    I hope to later use this data as a basis if the user can still login or
> not.

One option might be the "last" command for this though I'm not sure how
reliable it is.  I found previously that the thin client users were not
getting registered in wtmp (the database of logins which last reads), but
at some point that got fixed I think.

> 2. Is there a trick on adding multiple users easily. ( I need to setup
> individual account for each student, I guess it will be a pain to use the
> user and groups manager program.

If you have basic shell scripting knowledge you could write the users to a
CSV file and use a shell script around adduser to do the rest.  I can
possibly help out with this if needed.  Maybe someone else has one already?

I think webmin might facilitate loading a bundle of users in from a file,
but you'd have to install it.  As far as I know, the edubuntu tools don't
(yet) have a simple way to do this.


More information about the edubuntu-users mailing list