+Overview of changes in lightdm 1.1.4
+
+ * Change session directory once user permissions are set so it works
+ on NFS filesystems that don't allow root to access files.
+
Overview of changes in lightdm 1.1.3
* Actually return the system default keyboard layout, not just 'us'
user = pam_session_get_user (session->priv->authentication);
- /* Change working directory */
- if (chdir (user_get_home_directory (user)) != 0)
- {
- g_warning ("Failed to change to home directory %s: %s", user_get_home_directory (user), strerror (errno));
- _exit (EXIT_FAILURE);
- }
-
/* Change to this user */
if (getuid () == 0)
{
}
}
+ /* Change working directory */
+ /* NOTE: This must be done after the permissions are changed because NFS filesystems can
+ * be setup so the local root user accesses the NFS files as 'nobody'. If the home directories
+ * are not system readable then the chdir can fail */
+ if (chdir (user_get_home_directory (user)) != 0)
+ {
+ g_warning ("Failed to change to home directory %s: %s", user_get_home_directory (user), strerror (errno));
+ _exit (EXIT_FAILURE);
+ }
+
/* Redirect output to logfile */
if (session->priv->log_file_as_user)
setup_log_file (session);