Summary: | x11-misc/lightdm no create lightdm system user | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | cronolio <salikov.alexey> |
Component: | Current packages | Assignee: | Lars Wendler (Polynomial-C) (RETIRED) <polynomial-c> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | alexander, salikov.alexey |
Priority: | Normal | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Attachments: |
lightdm ebuild that creates and uses a lightdm user
lightdm-1.26.0-r2.ebuild v2 |
Description
cronolio
2015-10-20 13:34:08 UTC
And default user should be changed to lightdm imo. From the ebuild: _user=${LIGHTDM_USER:=root} UPD: any news? Created attachment 543760 [details]
lightdm ebuild that creates and uses a lightdm user
This ebuild uses user creation stuff that has been shamelessly copied from the gdm ebuild and modified a bit. Furthermore, I used the opportunity to add a keepdir for /var/lib/lightdm-data because portage complains about creating empty directories without making sure they have a keep file in them.
I am using this ebuild myself at the moment and everything seems to work fine.
Created attachment 543948 [details]
lightdm-1.26.0-r2.ebuild v2
This version of the ebuild improves on the first one by:
- using the value of the environment variable LIGHTDM_USER (defaulting to lightdm) as user to allow for customization
- removing the check if the user is in the video group that was carried over from the gdm ebuild as the scenarios where this would be necessary are limited
- removing the dodir /var/lib/lightdm-data as it is redundant with keepdir
- removing the keepdir for the home directory as it is created by esethome in pkg_setup() and thus not tracked by portage anyway
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c153424ee8ba62a055bf1d971264c8cf7a8e3d9f commit c153424ee8ba62a055bf1d971264c8cf7a8e3d9f Author: Lars Wendler <polynomial-c@gentoo.org> AuthorDate: 2019-05-20 09:07:32 +0000 Commit: Lars Wendler <polynomial-c@gentoo.org> CommitDate: 2019-05-20 09:24:22 +0000 x11-misc/lightdm: Bump to version 1.30.0 Added "non_root" USE flag in order to run lightdm no as root Thanks-to: Christian Widmer <CWidmer@umbrox.de> Closes: https://bugs.gentoo.org/563564 Package-Manager: Portage-2.3.66, Repoman-2.3.12 Signed-off-by: Lars Wendler <polynomial-c@gentoo.org> x11-misc/lightdm/Manifest | 1 + x11-misc/lightdm/lightdm-1.30.0.ebuild | 154 +++++++++++++++++++++++++++++++++ x11-misc/lightdm/metadata.xml | 1 + 3 files changed, 156 insertions(+) |