![]() |
User login & lock screen monitor
Hello,
I use Ubuntu 11.04 with GUI. I want to monitor my user for login/logout and lock/unlock screen. I want to see:
I tried who/last and to retrieve information from utmp and wtmp files, but is not quite I want. I don't mind if I have to write this code myself, but I don't know how to catch lock/unlock screen events. Thanks. |
Hi, maybe you could find this useful:
yum install psacct chkconfig psacct on # /etc/init.d/psacct start ac -p lastcomm username lastcomm somecommand lastcomm pts/1 sa -u Cheers |
All times are GMT -5. The time now is 05:28 AM. |