> - If the /var/cache/gdm/user-$uid/dmrc file does not exist, then
>    GDM will log the user into the default session/language or whichever
>    ones they selected in the GUI.  Then it will save the dmrc file to
>    the cache with the default settings.  On next login, the defaults
>    will be read from the cache and not the user's $HOME directory.

I've read the subsequent comments on this, but I'll reply here since this
was the original point of suggestion.

While I acknowledge the merits of storing the dmrc locally in /var/cache,
this could cause much trouble for Sun Ray failover groups.  Sun Rays can
connect to any one of a number of servers in the failover group.  Using a
local dmrc would mean that logging in after logging out, even on the same
Sun Ray DTU, could result in a different session.  A workaround could be to
NFS mount /var/cache/gdm across all these systems, but that seems to be a
poor way to do things.

Kerberos-secured and even AFS homedirs work fine with the current dtlogin
and gdm behavior for using the last session, which is that there is
literally an option for "use last session" in the sessions list and the dmrc
is read after successful pam_setcred.  While that means the user isn't told
ahead of time what exactly that last session is, I have never heard a
complaint about that particular missing feature.

The right solution here might be to make it a GDM configurable, perhaps with
the default to store in /var/cache, but then have a Sun Ray install script
either prompt the sysadmin to choose or just change the default to using
$HOME/.dmrc.

William Yang


Reply via email to