FS#36907 - [lightdm] Lightdm won't start with the default installation

Attached to Project: Community Packages
Opened by Tom (reztho) - Thursday, 12 September 2013, 21:04 GMT
Last edited by Maxime Gauduin (Alucryd) - Friday, 13 September 2013, 08:32 GMT
Task Type Bug Report
Category Packages
Status Closed
Assigned To Maxime Gauduin (Alucryd)
Architecture All
Severity Medium
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Description:
Following the Archlinux wiki installation guide, Lightdm will start blinking and finally fail to start. Lightdm tries to write to its directory in /var/lib/lightdm and since it runs with its regular user, lightdm, and the directory has root permissions, it fails.

Additional info:
* package version(s)
1:1.6.1-3

* In the log file, this appears:

** (process:19533): WARNING **: Error reading existing Xauthority: Failed to open file '/var/lib/lightdm/.Xauthority': Permission denied

Steps to reproduce:
Just follow the installation guide from the wiki.

More confirmation:
https://bbs.archlinux.org/viewtopic.php?id=169609

Fix:
Add this line to the .install file of the package:
chown lightdm:lightdm /var/lib/lightdm > /dev/null
This task depends upon

Closed by  Maxime Gauduin (Alucryd)
Friday, 13 September 2013, 08:32 GMT
Reason for closing:  Fixed
Additional comments about closing:  Fixed in 1:1.6.1-4
Comment by Balló György (City-busz) - Friday, 13 September 2013, 00:59 GMT
@Maxime: Allan recommends to do not set permissions in post_install/upgrade, see:
https://bugs.archlinux.org/task/36770

So the solution is:
- Remove the following line from lightdm.install file:
chown lightdm:lightdm /var/log/lightdm > /dev/null

- Add the following line to the PKGBUILD file:
chown -R 620:620 "$pkgdir"/var/{lib,log}/lxdm
Comment by Maxime Gauduin (Alucryd) - Friday, 13 September 2013, 07:54 GMT
György: Thank you for the heads up. I originally set the perms in the PKGBUILD but with lightdm:lightdm, however it would fail since the lightdm user is created post installation. Setting them in the install seemed like the way to go, and gdm does it like this too. I'll make the necessary changes using IDs.

Loading...