Quote:
|
couldn't you just have a program that when someone logs in autoruns telling this program that they have logged in? wouldn't that be much simpler....
|
I'd assume not, as this daemon wants to log all logins, so i'd assume it needs root powers (e.g it will write to certain files or do certain things that require root access). Giving each user access to the data this daemon will work with would not strike me as safe.
Quote:
|
Could you explain how to parse the /var/run/utmp file. It is in binary format.
|
As was said, read through the manpage for utmp. It's perfectly documented there.