Last login time should be shown also in graphical environments

Bug #507021 reported by Otto Kekäläinen
12
This bug affects 2 people
Affects Status Importance Assigned to Milestone
gdm (Ubuntu)
Confirmed
Wishlist
Unassigned

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.

Tags: wishlist
Revision history for this message
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)
Revision history for this message
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 (https://wiki.ubuntu.com/Bugs/Upstream/GNOME)

Changed in gdm (Ubuntu):
importance: Undecided → Wishlist
Revision history for this message
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)
tags: added: wishlist
Revision history for this message
Launchpad Janitor (janitor) wrote :

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

Changed in gdm (Ubuntu):
status: New → Confirmed
Revision history for this message
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.

Revision history for this message
Osmo Laitinen (osmo-laitinen) wrote :

Found this related bug for lightdm: https://bugs.launchpad.net/ubuntu/+source/lightdm/+bug/870297

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

Revision history for this message
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  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.