User accounts login history showing incorrect history - patch
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Ubuntu GNOME |
Triaged
|
Low
|
Unassigned | ||
accountsservice |
Unknown
|
Unknown
|
|||
accountsservice (Ubuntu) |
Fix Released
|
Low
|
Unassigned | ||
Trusty |
Fix Released
|
Low
|
Unassigned | ||
Xenial |
Fix Released
|
Low
|
Unassigned |
Bug Description
Impact
-------
Logout times for users are correct if user logs off and then shutdown
from GDM, however logout times are wrong if user shutdowns directly
from the user session, because DEAD_PROCESS record is missing in that
case and BOOT_TIME record is used instead.
Therefore the logout time will be shown in the login-history (in the gnome-control-
Test case
----------
1. Make sure that you have turned on and logged into the machine and then turned off from the user session several times with enough distance between them for you to tell that the timestamps are correct.
2. Check that after applying the patch that the timestamps show the correct times for the logins and logouts and not what is described in the Impact section above.
Regression potential
-------
I have not encountered any regressions while testing this patch.
[bdmurray] - What could go wrong? What should a user testing this look for?
-------
Original description:
I have found that in "System Settings > User Accounts" that if you select an account and then select the button called "History" (which is meant to show the login history for that account), it will show you when you last logged in as "Session Started", but it will show that you "Session Ended" just before you login the next time.
To clarify what I mean, let's say that yesterday I logged into my account on this machine at 14:29, and then sometime near 23:00 I logged out, and then this morning I logged into my account somewhere around 11:20, it will show this:
Today 11:20 Session Started
Today 11:19 Session Ended
Yesterday, 14:29 Session Started
So it assumes that the last session ended when you log into a new one, so the bug seems to be that it does not log when a session ends properly, and only logs it when a new session starts.
I have attached a screenshot to show my example as I see it in the History GUI.
I have found this bug to be present in Ubuntu 14.04, Ubuntu 15.04, Ubuntu GNOME 15.10 with GNOME 3.18, and Ubuntu GNOME 16.04 with GNOME 3.20.
description: | updated |
description: | updated |
Changed in gnome-control-center: | |
importance: | Unknown → Medium |
status: | Unknown → Incomplete |
Changed in gnome-control-center: | |
status: | Incomplete → Confirmed |
description: | updated |
Changed in gnome-control-center (Ubuntu): | |
importance: | Undecided → Low |
Changed in accountsservice (Ubuntu): | |
importance: | Undecided → Low |
Changed in gnome-control-center: | |
status: | Confirmed → Unknown |
Changed in accountsservice (Ubuntu): | |
status: | New → Confirmed |
Changed in accountsservice (Ubuntu Xenial): | |
importance: | Undecided → Low |
status: | New → Triaged |
Changed in gnome-control-center (Ubuntu Xenial): | |
importance: | Undecided → Low |
status: | New → Triaged |
Changed in unity-control-center (Ubuntu Xenial): | |
importance: | Undecided → Low |
status: | New → Triaged |
Changed in ubuntu-gnome: | |
status: | Confirmed → Triaged |
importance: | Undecided → Low |
Changed in gnome-control-center (Ubuntu): | |
status: | Fix Released → Confirmed |
Changed in accountsservice (Ubuntu): | |
status: | Fix Released → Confirmed |
tags: | added: yakkety |
Changed in ubuntu-gnome: | |
assignee: | nobody → Nikita Yerenkov-Scott (yerenkov-scott) |
Changed in accountsservice (Ubuntu): | |
assignee: | nobody → Nikita Yerenkov-Scott (yerenkov-scott) |
Changed in accountsservice (Ubuntu Xenial): | |
assignee: | nobody → Nikita Yerenkov-Scott (yerenkov-scott) |
no longer affects: | unity-control-center (Ubuntu) |
no longer affects: | gnome-control-center (Ubuntu) |
Changed in gnome-control-center: | |
importance: | Medium → Undecided |
status: | Unknown → New |
affects: | gnome-control-center → ubuntu-translations |
no longer affects: | ubuntu-translations |
Thank you for your bug report. Do you log out and stop the machine? Can you check if after logout some processes from your user session are still active on the system? That could explain the behaviour