Bug#365606: gdm: problems with automounted home directories

Arthur de Jong arthur at west.nl
Mon May 1 12:47:23 UTC 2006


Subject: gdm: problems with automounted home directories
Package: gdm
Version: 2.13.0.10-2
Severity: normal
Tags: patch

We have seen problems with users restoring there settings when logging
in. The symptoms are as follows:
- user logs in for the first time and gets an error message about
  permission problems in ~/.dmrc
- the second login attempt is fine
- in the logs:
  Apr 27 16:51:43 localhost gdm[6921]: gdm_slave_session_start: /home/user is not owned by uid 1000.

We have a setup where user home directories are mounted using an
automounter with ghosting enabled (--ghost option to automount). This
causes unmounted directories to appear like:
    0 dr-xr-xr-x  2 root root 0 May  1 12:34 /home/user
after an access to any file inside this directory the home directory is
mounted on top of it and the directory changes to:
 8.0K drwxr-sr-x  104 user consul 8.0K May  1 12:29 /home/user

This obviously confuses gdm into thinking the user's home directory is
not owned by the user. This problem can be solved by setting
CheckDirOwner to false in gdm.conf.

The problem can also be solved quite easily in gdm by stat()-ing
the .dmrc file before the home directory. The changes to
daemon/filecheck.c: gdm_file_check() are limited to moving some code
around.

The other point is that it would be nice if the error message to the
user would be a little clearer. The problem was not with the permissions
of the ~/.dmrc file (which is what the error said) but with the
directory.

-- 
-- arthur de jong - arthur at west.nl - west consulting b.v. --
-------------- next part --------------
A non-text attachment was scrubbed...
Name: gdm-statorder.patch
Type: text/x-patch
Size: 2831 bytes
Desc: not available
Url : http://lists.alioth.debian.org/pipermail/pkg-gnome-maintainers/attachments/20060501/025bc843/gdm-statorder.bin


More information about the Pkg-gnome-maintainers mailing list