How to track the user sessions
I'm using LDAP and kerberos for user authentication. All I want to know is how to track the users currently logged on from a common location. I was thinking of having a script to write the $USER,$HOSTNAME,login/logout time, hours used etc on a NFS mount, but don't know where to call the script so that it will be executed whenever an user logs in / logs out. I'm using Gnome desktop manager.
Thanks in advance.