View Single Post
Old Jul 7th, 2005, 4:58 AM   #10
Cerulean
Professional Programmer
 
Cerulean's Avatar
 
Join Date: Apr 2005
Location: London, England
Posts: 459
Rep Power: 4 Cerulean is on a distinguished road
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.
Cerulean is offline   Reply With Quote