James writes:

> When you run kde-4 on gentoo and use the kde-login-manager app
> are the login sessions recorded into a permanent or temporary file?
> 
> I looked in /etc/kde  ;   /var/log/kdm.log and xdm.log
> and have found nothing.
> 
> I did find /var/log/wtmp, but it is not in a human 
> readable format?
> 
> I did see utmp in /etc/group
> (utmp:x:406:)
> so I guess I'm just not up on what going on here......
> 
> 
> utmp or wtmp?  What is standard for gentoo? running kde4?
> 
> I cannot seem to locate a login file.
> 
> Is the login file for kde4 standard across all(most) linux
> distros for kde 4?
> 
> While I'm looking, where are the remote (ssh) login file
> records usually kept on Gentoo?
> 
> Any discussion/education is most appreciated.

If you want to know, who is logged in and when someone logged in, check
the man page for utmp / wtmp. These files are not human readable indeed,
but you can use the 'who' or 'w' command to see who is currently logged
in, and the last command to see when someone logged in. The 2nd column
shows where the login came from (and the 3rd from where),  it displays
'ssh' when someone logged in via ssh. ':0' means someone started a login
on the first X display. Probably using KDE4, but it may be any
other window manager. So I have no answer to your question about KDE
logins. And I don't knwo if the feature you are looking for exists at all.

Maybe you can hack /usr/share/config/kdm/Xsession, to add an entry in
some log file in case KDE is being started.

        Wonko

Reply via email to