Thanks for any kind of help!
All user access activity is recorded in /var/log/auth.log which is replaced every few days so that the older data is being spun off to auth.log.1 auth.log.2 etc.
You can look for individual users by building a script (which is beyond my knowledge). A quick and dirty method would be to filter through grep, e.g.:Code:cat /var/log/auth.log | grep user_name
Try putting the following in a .bash_login file.
And this in the .bash_logout file.Code:punchcard="$HOME/.punchcard" echo "in:" >> $punchcard date >> $punchcard
Both in the user's home directory.Code:punchcard="$HOME/.punchcard" echo "out:" >> $punchcard date >> $punchcard
The file .punchard will contain the time of login and logout.
Last edited by sgy; March 22nd, 2013 at 06:48 PM.
You can see if this is of value or not. http://www.cyberciti.biz/tips/howto-...ccounting.html