Red Hat Bugzilla – Bug 209537
gdm should create a utmp entry for session
Last modified: 2015-01-14 18:20:02 EST
Seems like it stopped doing this from:
I think we really need a utmp entry. We are going to be using this for some of
the ConsoleManager/PolicyKit/HAL stuff.
Is there a reason why this changed?
yup, it's just a bug. We should be creating a utmp entry for local logins, and
not for remote logins.
See http://bugzilla.gnome.org/show_bug.cgi?id=347871 for more details.
Note, I'm not sure it's a good idea to rely on utmp. It's not really reliable.
Well, for tracking user sessions we need something like this. And it's bigger
than Fedora, we'd want every OS that runs the growing Utopia stack (which soon
will include ConsoleManager and PolicyKit) to be able to track this.
Perhaps a better approach is to teach gdm, kdm and possibly login(1) about
talking to ConsoleManager. Each of these would call into ConsoleManager to
announce session add / remove. Would probably need some restructuring of how
things work, e.g. gdm, kdm and login(1) would need to babysit the session.
The latter is certainly a bit more robust.
*** Bug 217198 has been marked as a duplicate of this bug. ***
well i have lots of scripts that rely on 'finger' and 'w' and 'who', and none
are working. should i add the SESSREG code back into /etc/gdm/PreSession and
PostSession? What again is the downside of using sessreg again?
So how exactly do you guys suggest that I finger my box in the meantime?
Adding back the sessreg code (with just the -u argument and not the -w argument)
should work in the mean time.
The downside of the sessreg code is just that it doesn't support btmp logging
(It couldn't because it only gets run on successful logins). Other than that,
it's fine, I think.
Fedora Core 5 and Fedora Core 6 are, as we're sure you've noticed, no longer
test releases. We're cleaning up the bug database and making sure important bug
reports filed against these test releases don't get lost. It would be helpful if
you could test this issue with a released version of Fedora or with the latest
development / test release. Thanks for your help and for your patience.
[This is a bulk message for all open FC5/FC6 test release bugs. I'm adding
myself to the CC list for each bug, so I'll see any comments you make after this
and do my best to make sure every issue gets proper attention.]
This bug breaks also pam_timestamp module.
We should try to get some sort of fix for this in before fc7 final if I can.
okay i added sessreg back on for utmp records.