Repository navigation
tmpfiles.d/login.conf: Fix /var/lib/lightdm ownership - #911
Conversation
|
Did you try it out? Without it, lightdm just didn't start a all for me |
|
Yep. I built the daily image locally, installed it with the .iso and |
Installer builds for 4a4d2ccDo not use these installers for production systems. They are intended for testing purposes only. They will update to the latest PR build, which will break your install eventually.
|
/var/lib/lightdm has to be owned by lightdm and not by root otherwise we get a bunch of problems when running (the directory is used for conf and cache etc. by apps running in the greeter) The manual creation of /var/lib/lightdm/data is unnecessary so replace it by a fix that makes sure /var/lib/lightdm is actually owned by lightdm.
4a4d2cc to
921f56d
Compare
|
I removed the special handling of However that very much feels like a workaround (I mean why does it work on the normal system??) so I would much rather find who actually creates that directory with root as the owner. Though I also have to say I don't have much experience in configuring a system like this, especially with image based OS's, so maybe it's not a workaround after all and just a normal thing to do? |
Installer builds for 921f56dDo not use these installers for production systems. They are intended for testing purposes only. They will update to the latest PR build, which will break your install eventually.
|
|
I just checked, for some reason, /var/lib/lightdm is chowned to lightdm in the Ubuntu package postinst. /var is not kept, it's supposed to be a runtime/machine-specific directory, I find it very weird that Ubuntu would do permissions changes to /var in a postinst script... So we do have to keep your workaround. Feel free to merge if you feel like it's good. Ref: https://launchpadlibrarian.net/847271145/lightdm_1.32.0-6ubuntu4.debian.tar.xz |
|
@jumpyvi thanks for the investigation! Then ig this makes sense so I dropped the workaround comment :) |
Installer builds for 8b07209Do not use these installers for production systems. They are intended for testing purposes only. They will update to the latest PR build, which will break your install eventually.
|
/var/lib/lightdm has to be owned by lightdm
and not by root otherwise we get a bunch of
problems when running (the directory is used
for conf and cache etc. by apps running in
the greeter)
The manual creation of /var/lib/lightdm/data is
unnecessary so replace it by a fix that makes
sure /var/lib/lightdm is actually owned by lightdm.