login-screen has no user-pictures with encrypted home directories

Bug #426724 reported by syscon-hh
48
This bug affects 7 people
Affects Status Importance Assigned to Milestone
gdm
Fix Released
Medium
gdm (Ubuntu)
Fix Released
Medium
Martin Pitt
gnome-control-center (Ubuntu)
Fix Released
Medium
Unassigned

Bug Description

Binary package hint: ecryptfs-utils

DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=9.10
DISTRIB_CODENAME=karmic
DISTRIB_DESCRIPTION="Ubuntu karmic (development branch)"

Kernel (update) 2.6.31-10-generic, i386 - same using amd64.
Gnome desktop (gdm)

By using an encrypted home directory (ecryptfs-utils), the users pictures ('~/.face' respectively '/usr/share/pixmaps/faces/**') are not shown at login-screen, as it is default without encryption.

This seems to be a general bug of 'ecryptfs-utils'.

syscon-hh (syscon-kono)
description: updated
Revision history for this message
Dustin Kirkland  (kirkland) wrote :

Thanks for the report.

Obviously, this is because your home directory is not mounted at the time in which gdm tries to read your .face file.

To solve this, we're going to need to read/write .face to a non-encrypted location. The best place for this is going to be /home/.ecryptfs/$USER.

gdm will need to be modified to check this location for .face.

And gnome-control-center will need to be modified to write .face to that location too, if it exists.

:-Dustin

affects: ecryptfs-utils (Ubuntu) → gdm (Ubuntu)
Changed in gdm (Ubuntu):
assignee: nobody → Dustin Kirkland (kirkland)
importance: Undecided → Wishlist
status: New → Triaged
Changed in gnome-control-center (Ubuntu):
status: New → Triaged
assignee: nobody → Dustin Kirkland (kirkland)
importance: Undecided → Wishlist
Changed in gdm (Ubuntu):
status: Triaged → In Progress
Changed in gnome-control-center (Ubuntu):
status: Triaged → In Progress
Revision history for this message
Dustin Kirkland  (kirkland) wrote :

Attaching a fix for gdm. I've tested that it does the right thing, looking for a .face file in /home/.ecryptfs/$USER/.face.

I'm hoping that seb or pitti will have a look at this, upload to Ubuntu, and take care of upstreaming to Gnome.

Thanks,
:-Dustin

Revision history for this message
Dustin Kirkland  (kirkland) wrote :

Attaching a fix to gnome-control-center, that fixes the about-me dialog to write .face to /home/.ecryptfs/$USER, if that directory exists.

Again, I've tested it and it does this. Subscribing seb and pitti, hoping that they'll have a look over it, upstream it to Gnome, and upload to Karmic.

Thanks,
:-Dustin

Revision history for this message
Dustin Kirkland  (kirkland) wrote :
Changed in gdm (Ubuntu):
assignee: Dustin Kirkland (kirkland) → Sebastien Bacher (seb128)
Changed in gnome-control-center (Ubuntu):
assignee: Dustin Kirkland (kirkland) → Sebastien Bacher (seb128)
Changed in gdm (Ubuntu):
milestone: none → karmic-alpha-6
Changed in gnome-control-center (Ubuntu):
milestone: none → karmic-alpha-6
Revision history for this message
Martin Pitt (pitti) wrote :

Some notes about the gdm patch:

- First doing asprintf seems superfluous, it could all be done in one step in the g_build_filename() call.
- ~/.dmrc needs the same treatment

Revision history for this message
Martin Pitt (pitti) wrote :

Taking the gdm side.

Changed in gnome-control-center (Ubuntu):
assignee: Sebastien Bacher (seb128) → Martin Pitt (pitti)
Martin Pitt (pitti)
Changed in gnome-control-center (Ubuntu):
assignee: Martin Pitt (pitti) → Sebastien Bacher (seb128)
Changed in gdm (Ubuntu):
assignee: Sebastien Bacher (seb128) → Martin Pitt (pitti)
importance: Wishlist → Medium
Changed in gnome-control-center (Ubuntu):
importance: Wishlist → Medium
summary: - login-screen has no user-pictures
+ login-screen has no user-pictures with encrypted home directories
Revision history for this message
Sebastien Bacher (seb128) wrote :

upstream fixed the issue by using a cache dir, see https://bugzilla.gnome.org/show_bug.cgi?id=565151 for details it will be in GNOME 2.28 next week

Changed in gdm (Ubuntu):
status: In Progress → Fix Committed
milestone: karmic-alpha-6 → ubuntu-9.10
Changed in gnome-control-center (Ubuntu):
milestone: karmic-alpha-6 → ubuntu-9.10
Revision history for this message
Dustin Kirkland  (kirkland) wrote :

Brilliant!

Changed in gdm:
status: Unknown → Fix Released
Revision history for this message
Matt Mossholder (matt-mossholder) wrote :

Does this, by chance, also work with NFS or other network mounted home directories? This might be a good fix for bug #23002...

Revision history for this message
Martin Pitt (pitti) wrote :

gdm (2.28.0-0ubuntu1) karmic; urgency=low

  * New upstream release (LP: #434354)
    - Now GDM supports the ability to specify the automatic/timed login user via
      a script via the same interface that the old GDM supported.
    - Now the user's dmrc and face image files are stored in /var/cache/gdm, so
      that the login process does not need to access the user's $HOME directory
      before authentication.
    - Fix the login GUI options widget so the language/session/layout choices
      are not reset after a failed login.
    - Fix language dialog so it does not crash if the user click's the "OK"
      button when no language is selected.
    - Fix to ensure that the login dialog regains focus after the language or
      layout dialogs are used.
    - The language dialog has improved logic to sort the language names more
      correctly.
    - Make sure to check error variable is not NULL before referencing it in the
      gdm-user-manager code.
    - Make sure to not print NULL strings since this causes crashes on some
      platforms.
    - Improve documentation.
  * debian/patches/09_gdmsetup.patch: updated:
    - Filter ConsoleKit system users (LP: #432271)
    - Make window size fixed (LP: #429206)
  * debian/patches/01_default_keyboard_layout_hal.patch,
    debian/patches/99_autoreconf.patch: updated.

Changed in gdm (Ubuntu):
status: Fix Committed → Fix Released
Martin Pitt (pitti)
Changed in gnome-control-center (Ubuntu):
milestone: ubuntu-9.10 → none
Changed in gnome-control-center (Ubuntu):
assignee: Sebastien Bacher (seb128) → nobody
Changed in gdm:
importance: Unknown → Medium
Revision history for this message
TC (datagrab) wrote :

I'm sure this is related, but may be better if reported as a separate issue. I'll post it here first to see what the general consensus is.

In the shutdown menu, there is a list of users for switching accounts. For accounts without encrypted profiles, the image linked to their profile is displayed, but for those with encrypted profiles their image does not display.

Revision history for this message
Jens Janssen (jayjay) wrote :

The bug appears again under Ubuntu 10.10 beta.

Revision history for this message
syscon-hh (syscon-kono) wrote :

Jens Janssen wrote: "The bug appears again under Ubuntu 10.10 beta."

I can't agree - due to the updates took place last days, the user picture has been deleted meanwhile.

After reset --> System -> Preferences -> About Me --> User Picture

the user picture is shown again inside the login-screen continuous.

Revision history for this message
Jens Janssen (jayjay) wrote :

Yes, this is what I did. And I repeated it minutes ago and the picture disappears again. Not every booting-up, but 1 out of 5 times.

And yes, my system is up to data. System installed on 2010-09-15. Do I miss anything? Perhaps this is the wrong bug because I don't use any encrypted home directory ;-)

Revision history for this message
Sebastien Bacher (seb128) wrote :

is that still an issue in Oneiric?

Revision history for this message
syscon-hh (syscon-kono) wrote :

No - it works without any restrictions - if you are using "gdm", not "lightdm"!

Revision history for this message
Martin Pitt (pitti) wrote :

I can change icons of users with and without encrypted home, and see them in the user menu indicator. However, unity-greeter doesn't show any pictures at all (independent of encryption status). This should become a separate report, though.

Changed in gnome-control-center (Ubuntu):
status: In Progress → Fix Released
Revision history for this message
Sebastien Bacher (seb128) wrote :

there is already a bug about the unity-greeter feature request

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

Duplicates of this bug

Other bug subscribers

Remote bug watches

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