Last login time should be shown also in graphical environments

Bug #507021 reported by Otto Kekäläinen on 2010-01-13
This bug affects 2 people
Affects Status Importance Assigned to Milestone
gdm (Ubuntu)

Bug Description

The UNIX shell has for ages shown to users their last login time after a successful login time. The line is e.g.: #Last login: Web Sep 23 10:57:34 EEST 2009 on tty1". This is a good security feature since it allows the user to discover if his account has been accessed at a time the user himself knows for sure he didn't log in. Command 'last' will show the last logins. Man page 'wtmp' will tell more about the feature.

At the moment there is nothing similar in a graphical environment. If somebody is using my account, I wouldn't probably notice it..

I don't know what the correct place to implement this is (GDM, Gnome, separate script?), but some part of the login process should
a) record the login to /var/log/wtmp
b) read the last login for the current user an flash it as a notification for 5-10 seconds

Additionally it would be nice if there was an graphical equivalent graphical tool to the 'last' command. However that requires more work. I guess the two things suggested above could be done with just a few lines of code - thus I made this bug report.

Gabe Gorelick (gabegorelick) wrote :

Even when you log in graphically, the timestamp is still recorded in /var/log/wtmp, and the "last" command still works. Still, you are right in that it would be a good security feature to somehow present this to the user on login.

gdm was completely rewritten to work with xsplash in karmic, and it isn't as feature rich as it once was. I think the priority is to get the whole login stack up to feature parity with what was there before the transfer to the new gdm first, before implementing something new, but this is still a good idea for the future.

affects: ubuntu → gdm (Ubuntu)
Sebastien Bacher (seb128) wrote :

Thank you for your bug report. The issue is an upstream one and it would be nice if somebody having it could send the bug the to the people writting the software (

Changed in gdm (Ubuntu):
importance: Undecided → Wishlist
Sebastien Bacher (seb128) wrote :

The request seems something which would make the login screen look less nice and clean for a feature almost nobody would be using, could be an option though

papukaija (papukaija) on 2010-05-30
tags: added: wishlist
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in gdm (Ubuntu):
status: New → Confirmed
Osmo Laitinen (osmo-laitinen) wrote :

Yes, last command should show also graphical logins. I don't know how long this has been broken for me, maybe since gdm was replaced with lightdm. So, it is also true that this might be something desktop users won't use much.

Osmo Laitinen (osmo-laitinen) wrote :

Found this related bug for lightdm:

And yes, I'm using lightdm, so this doesn't affect me.

Gabe Gorelick (gabegorelick) wrote :

FYI, lightdm is now what's used by default in Ubuntu.

To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers