lightdm post-install script doesn't create /var/lib/lightdm if user already exists, preventing lightdm from starting

Bug #1395530 reported by Stephen Lin
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
lightdm (Ubuntu)
New
Undecided
Unassigned

Bug Description

I'm not sure if this really counts as a bug or if it's just an unsupported configuration, but the post-install script (lightdm.postinst) doesn't ensure that "/var/lib/lightdm" exists and has the correct permissions if the user already exists, since it is relying upon "adduser" to create the home directory and only does so if the "lightdm" user doesn't already exist. This prevents lightdm from starting and leads to a fallback X session being created instead, which doesn't give any helpful information about the underlying problem.

The reason I already had a lightdm user in passwd is because I was bootstrapping Ubuntu in a chroot and copied passwd/shadow/group/gshadow into it before installing packages, since I wanted to make sure UID/GIDs would be consistent between the two installations. It would be nice if this case could be more gracefully handled, since I don't think it's all that unusual.

summary: - lightdm post-install script doesn't create var/lib/lightdm if user
+ lightdm post-install script doesn't create /var/lib/lightdm if user
already exists, preventing lightdm from starting
description: updated
description: updated
description: updated
description: updated
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.