View previous topic :: View next topic |
Author |
Message |
figueroa Advocate
Joined: 14 Aug 2005 Posts: 2912 Location: Edge of marsh USA
|
Posted: Wed Jan 10, 2018 11:02 pm Post subject: LightDM with duplicate users |
|
|
I'm using lightdm (Gentoo, of course with XFCE and LXDE) at home and at a school where I support a half dozen servers and desktop PCs. The lightdm configuration is default with GTK greeter. The users in the pull-down user list are always listed twice. It's functional, but doesn't look very well managed. Help appreciated. _________________ Andy Figueroa
hp pavilion hpe h8-1260t/2AB5; spinning rust x3
i7-2600 @ 3.40GHz; 16 gb; Radeon HD 7570
amd64/17.1/desktop (stable), OpenRC, -systemd -pulseaudio -uefi |
|
Back to top |
|
|
Fitzcarraldo Advocate
Joined: 30 Aug 2008 Posts: 2034 Location: United Kingdom
|
Posted: Thu Jan 11, 2018 1:17 am Post subject: |
|
|
I'm using Gentoo with KDE rather than Xfce or LXDE, but I am using LightDM with the GTK Greeter. What do the LightDM configuration files in /etc/lightdm/ contain? Here are mine for comparison:
Code: | $ grep -v ^# /etc/lightdm/lightdm-gtk-greeter.conf
[greeter]
background=/usr/share/wallpapers/larry-the-cow/gentoo-cow-gdm-remake-1920x1080.png
indicators=~host;~spacer;~clock;~spacer;~language;~power |
Code: | $ grep -v ^# /etc/lightdm/lightdm.conf
[LightDM]
session-wrapper=/etc/lightdm/Xsession
[Seat:*]
greeter-session=lightdm-gtk-greeter
session-wrapper=/etc/lightdm/Xsession
display-setup-script=/etc/X11/Sessions/plasma
[XDMCPServer]
[VNCServer] |
Code: | $ grep -v ^# /etc/lightdm/users.conf
[UserList]
minimum-uid=1000
hidden-users=nobody nobody4 noaccess
hidden-shells=/bin/false /usr/sbin/nologin |
_________________ Clevo W230SS: amd64, VIDEO_CARDS="intel modesetting nvidia".
Compal NBLB2: ~amd64, xf86-video-ati. Dual boot Win 7 Pro 64-bit.
OpenRC udev elogind & KDE on both.
Fitzcarraldo's blog |
|
Back to top |
|
|
figueroa Advocate
Joined: 14 Aug 2005 Posts: 2912 Location: Edge of marsh USA
|
Posted: Thu Jan 11, 2018 3:41 am Post subject: |
|
|
Thank you for asking. We have very few differences in configuration.
Code: | $ grep -v ^# /etc/lightdm/lightdm-gtk-greeter.conf
[greeter]
background=/usr/share/lightdm/backgrounds/gentoo-bg_65.jpg
theme-name=Adwaita
icon-name=gnome
cursor-name=gnome
font-name=Cantarell 11
xft-antialias=true
xft-dpi=96
xft-hintstyle=hintslight
xft-rgba=rgb |
Which looks very nice.
lightdm.conf is identical even down to the duplicate "session-wrapper=/etc/lightdm/Xsession" though I've tried commenting out the entry under [Seat:*] which seems to have no effect.
users.conf is completely identical.
I remain baffled. _________________ Andy Figueroa
hp pavilion hpe h8-1260t/2AB5; spinning rust x3
i7-2600 @ 3.40GHz; 16 gb; Radeon HD 7570
amd64/17.1/desktop (stable), OpenRC, -systemd -pulseaudio -uefi |
|
Back to top |
|
|
Fitzcarraldo Advocate
Joined: 30 Aug 2008 Posts: 2034 Location: United Kingdom
|
Posted: Thu Jan 11, 2018 9:39 am Post subject: |
|
|
My family PC has Lubuntu 17.10 installed, and that uses LightDM 1.24.0 with the GTK greeter (my Gentoo amd64 installation uses LightDM 1.18.3). This may be a red herring, but I notice that /etc/lightdm/users.conf in the Lubuntu installation contains the following:
Code: | #
# User accounts configuration
#
# NOTE: If you have AccountsService installed on your system, then LightDM will
# use this instead and these settings will be ignored
#
# minimum-uid = Minimum UID required to be shown in greeter
# hidden-users = Users that are not shown to the user
# hidden-shells = Shells that indicate a user cannot login
#
[UserList]
minimum-uid=500
hidden-users=nobody nobody4 noaccess
hidden-shells=/bin/false /usr/sbin/nologin |
Notice the comment in that file about AccountsService. I wonder if, somehow, LightDM in your case is using the settings in /etc/lightdm/lightdm.conf and AccountsService, resulting in duplicate entries in the greeter's user list? You could try adding the following line in the [SeatDefaults] section in lightdm.conf to see if it gets rid of the duplicate set of users:
Code: | greeter-hide-users=true |
Of course that might get rid of all the users in the list, not just the duplicates, but it's worth trying just to see what happens. _________________ Clevo W230SS: amd64, VIDEO_CARDS="intel modesetting nvidia".
Compal NBLB2: ~amd64, xf86-video-ati. Dual boot Win 7 Pro 64-bit.
OpenRC udev elogind & KDE on both.
Fitzcarraldo's blog |
|
Back to top |
|
|
figueroa Advocate
Joined: 14 Aug 2005 Posts: 2912 Location: Edge of marsh USA
|
Posted: Thu Jan 11, 2018 5:44 pm Post subject: |
|
|
Good thinking, but I don't have AccountsService installed. Still, I tried enabling "greeter-hide-users=true" which resulted in no users being offered. At least it shows I'm using the right configuration file. _________________ Andy Figueroa
hp pavilion hpe h8-1260t/2AB5; spinning rust x3
i7-2600 @ 3.40GHz; 16 gb; Radeon HD 7570
amd64/17.1/desktop (stable), OpenRC, -systemd -pulseaudio -uefi |
|
Back to top |
|
|
Fitzcarraldo Advocate
Joined: 30 Aug 2008 Posts: 2034 Location: United Kingdom
|
Posted: Thu Jan 11, 2018 6:41 pm Post subject: |
|
|
Hmm... I wonder if what you're seeing has the same root cause as the following problem with SDDM reported five months ago: sddm started displaying username twice _________________ Clevo W230SS: amd64, VIDEO_CARDS="intel modesetting nvidia".
Compal NBLB2: ~amd64, xf86-video-ati. Dual boot Win 7 Pro 64-bit.
OpenRC udev elogind & KDE on both.
Fitzcarraldo's blog |
|
Back to top |
|
|
figueroa Advocate
Joined: 14 Aug 2005 Posts: 2912 Location: Edge of marsh USA
|
Posted: Thu Jan 11, 2018 10:45 pm Post subject: |
|
|
The glibc nsswitch.conf change is quite a finding. I suspect that is it. My systems are running stable, both x86 and x86_64, with glibc-2.25-r9 installed. The matter is way over my head. I'm a mere experienced user, not an operating system engineer. _________________ Andy Figueroa
hp pavilion hpe h8-1260t/2AB5; spinning rust x3
i7-2600 @ 3.40GHz; 16 gb; Radeon HD 7570
amd64/17.1/desktop (stable), OpenRC, -systemd -pulseaudio -uefi |
|
Back to top |
|
|
Fitzcarraldo Advocate
Joined: 30 Aug 2008 Posts: 2034 Location: United Kingdom
|
Posted: Fri Jan 12, 2018 2:53 pm Post subject: |
|
|
My Gentoo amd64 installation using LightDM with the GTK greeter does not have same problem you're experiencing, but I appear to have the same versions as you:
Code: | $ cat /etc/nsswitch.conf
# /etc/nsswitch.conf:
# $Header: /var/cvsroot/gentoo/src/patchsets/glibc/extra/etc/nsswitch.conf,v 1.2 2017/08/12 16:21:44 slyfox Exp $
passwd: compat files
shadow: compat files
group: compat files
hosts: files dns
networks: files dns
services: db files
protocols: db files
rpc: db files
ethers: db files
netmasks: files
netgroup: files
bootparams: files
automount: files
aliases: files |
Code: | $ eix -I glibc
[I] sys-libs/glibc
Available versions: (2.2) [M]~2.18-r1^s [M]2.19-r1^s [M]2.20-r2^s [M]2.21-r2^s [M]2.22-r4^s [M]2.23-r4^s [M]~2.24-r4^s 2.25-r9^s ~2.25-r10^s ~2.26-r3^s ~2.26-r5^s **9999^s
{audit caps compile-locales debug doc gd hardened headers-only multilib nscd profile +rpc selinux suid systemtap vanilla}
Installed versions: 2.25-r9(2.2)^s(11:15:55 10/01/18)(multilib rpc -audit -caps -debug -gd -hardened -headers-only -nscd -profile -selinux -suid -systemtap -vanilla)
Homepage: https://www.gnu.org/software/libc/
Description: GNU libc C library |
Code: | $ eix -I lightdm
[I] x11-misc/lightdm
Available versions: 1.18.3^t 1.18.3^t[1] ~1.24.0-r1^t {audit +gnome +gtk +introspection kde qt4 qt5}
Installed versions: 1.18.3^t[1](06:30:29 03/12/17)(gtk introspection qt5 -audit -gnome -kde -qt4)
Homepage: https://www.freedesktop.org/wiki/Software/LightDM
Description: A lightweight display manager
[I] x11-misc/lightdm-gtk-greeter
Available versions: 2.0.1-r1 ~2.0.2-r1 ~2.0.3 {ayatana branding}
Installed versions: 2.0.1-r1(06:46:01 03/12/17)(-ayatana -branding)
Homepage: https://launchpad.net/lightdm-gtk-greeter
Description: LightDM GTK+ Greeter
[1] "local_overlay" /usr/local/portage
Found 2 matches |
Do you have any USE flag differences to the ones I am using, as shown above in the eix output?
EDIT: BTW, if you're wondering why I am using LightDM in a local overlay, it's because the upstream code for Version 1.18.3 does not enable the user to suspend or hibernate from the greeter screen. I created a patch to modify the upstream code to enable me to do that: Gentoo Bug Report No. 605370 - >=x11-misc/lightdm-1.18.3: Suspend/Hibernate not available on login screen of non-systemd installations. _________________ Clevo W230SS: amd64, VIDEO_CARDS="intel modesetting nvidia".
Compal NBLB2: ~amd64, xf86-video-ati. Dual boot Win 7 Pro 64-bit.
OpenRC udev elogind & KDE on both.
Fitzcarraldo's blog |
|
Back to top |
|
|
figueroa Advocate
Joined: 14 Aug 2005 Posts: 2912 Location: Edge of marsh USA
|
Posted: Fri Jan 12, 2018 4:13 pm Post subject: |
|
|
Thanks for continuing to explore this.
my nsswitch.conf and eix glibc output is the same as yours.
It might be a notable difference in that I DO NOT have a gtk use flag for lightdm. When I add use + gtk it is ignored. gtk is part of my profile use flags. My profile is "default/linux/x86/17.0/desktop"
Code: | figueroa@jeremiah ~ $ eix -I lightdm
[I] x11-misc/lightdm
Available versions: 1.18.3^t ~1.24.0-r1^t {audit +gnome +gtk +introspection qt4 qt5}
Installed versions: 1.18.3^t(12:04:15 12/04/17)(introspection qt5 -audit -gnome -qt4)
Homepage: https://www.freedesktop.org/wiki/Software/LightDM
Description: A lightweight display manager
[I] x11-misc/lightdm-gtk-greeter
Available versions: 2.0.1-r1 ~2.0.2-r1 ~2.0.3 {ayatana branding}
Installed versions: 2.0.1-r1(18:04:58 06/03/17)(branding -ayatana)
Homepage: https://launchpad.net/lightdm-gtk-greeter
Description: LightDM GTK+ Greeter
|
_________________ Andy Figueroa
hp pavilion hpe h8-1260t/2AB5; spinning rust x3
i7-2600 @ 3.40GHz; 16 gb; Radeon HD 7570
amd64/17.1/desktop (stable), OpenRC, -systemd -pulseaudio -uefi |
|
Back to top |
|
|
Fitzcarraldo Advocate
Joined: 30 Aug 2008 Posts: 2034 Location: United Kingdom
|
Posted: Sat Jan 13, 2018 1:13 pm Post subject: |
|
|
I'm assuming you are using OpenRC. If you would like to try my ebuild for LightDM 1.18.3 and the patch in a local overlay on one of the affected machines, you can find the listings and instructions in the following post: https://forums.gentoo.org/viewtopic-p-8015180.html#8015180
I also notice you have USE="branding" for lightdm-gtk-greeter whereas I have USE="-branding", so you could also try changing that. _________________ Clevo W230SS: amd64, VIDEO_CARDS="intel modesetting nvidia".
Compal NBLB2: ~amd64, xf86-video-ati. Dual boot Win 7 Pro 64-bit.
OpenRC udev elogind & KDE on both.
Fitzcarraldo's blog |
|
Back to top |
|
|
figueroa Advocate
Joined: 14 Aug 2005 Posts: 2912 Location: Edge of marsh USA
|
Posted: Sat Jan 13, 2018 5:05 pm Post subject: |
|
|
Yes, I am using OpenRC. Thanks for the ideas. I'll try them one at a time. _________________ Andy Figueroa
hp pavilion hpe h8-1260t/2AB5; spinning rust x3
i7-2600 @ 3.40GHz; 16 gb; Radeon HD 7570
amd64/17.1/desktop (stable), OpenRC, -systemd -pulseaudio -uefi |
|
Back to top |
|
|
figueroa Advocate
Joined: 14 Aug 2005 Posts: 2912 Location: Edge of marsh USA
|
Posted: Sat Jan 13, 2018 5:38 pm Post subject: |
|
|
The interesting news is that x11-misc/lightdm-gtk-greeter-2.0.1-r1 will not build on either of my local systems with -branding. Possibly because branding is part of my profile default use flags, but the reason for the actual build failure cryptic. It's the first build failure I've experienced on my new month-old x86_64 desktop machine. Bleh! _________________ Andy Figueroa
hp pavilion hpe h8-1260t/2AB5; spinning rust x3
i7-2600 @ 3.40GHz; 16 gb; Radeon HD 7570
amd64/17.1/desktop (stable), OpenRC, -systemd -pulseaudio -uefi |
|
Back to top |
|
|
CarstenIQ n00b
Joined: 04 Jan 2007 Posts: 44 Location: Germany
|
Posted: Sat Jan 20, 2018 7:44 am Post subject: |
|
|
Hi figueroa
I was able to emerge "lightdm-gtk-greeter" with -branding after I did a portage sync. However, it did not solve the issue with the double user entries.
I would be interested in a solution. It is not critical but annoying. _________________ Gentoo Linux Rocks...!!! |
|
Back to top |
|
|
CarstenIQ n00b
Joined: 04 Jan 2007 Posts: 44 Location: Germany
|
Posted: Sat Jan 20, 2018 8:24 am Post subject: |
|
|
I also emerge a more recent version of lightdm, Version 1.24-r1 but still the same. I assume it is a dependency that does not work correctly. _________________ Gentoo Linux Rocks...!!! |
|
Back to top |
|
|
grant123 Veteran
Joined: 23 Mar 2005 Posts: 1080
|
Posted: Mon Feb 26, 2018 12:45 pm Post subject: |
|
|
Any solution to this? I have the exact same problem. |
|
Back to top |
|
|
grant123 Veteran
Joined: 23 Mar 2005 Posts: 1080
|
Posted: Tue Feb 27, 2018 1:45 pm Post subject: |
|
|
Where can I look to investigate this? |
|
Back to top |
|
|
oz_tiram n00b
Joined: 31 May 2015 Posts: 45
|
Posted: Fri Mar 09, 2018 3:36 am Post subject: newer versions of lightdm seems to solve the probelm |
|
|
grant123 wrote: | Any solution to this? I have the exact same problem. |
I have reported the issue here:
https://bugs.gentoo.org/649980, this ticket includes an ebuild for the updated lightdm.
Go test, and comment on the issue. If you want I also I have an overlay with the updated
ebuild here: https://github.com/oz123/overlay-gentoo |
|
Back to top |
|
|
lost-distance n00b
Joined: 10 Apr 2003 Posts: 73
|
Posted: Wed Mar 14, 2018 11:31 pm Post subject: Re: newer versions of lightdm seems to solve the probelm |
|
|
oz_tiram wrote: | Go test, and comment on the issue. |
Upgrading to lightdm-1.25.2 didn't fix the duplicated list of users for me, alas. |
|
Back to top |
|
|
grant123 Veteran
Joined: 23 Mar 2005 Posts: 1080
|
Posted: Fri Mar 16, 2018 12:48 pm Post subject: |
|
|
Same here unfortunately. Not fixed with 1.25.2. |
|
Back to top |
|
|
`VL n00b
Joined: 30 Apr 2004 Posts: 71 Location: Russia
|
Posted: Fri Mar 30, 2018 8:47 pm Post subject: |
|
|
Hello,
I was able to fix it by replacing 'compat files' to just 'files' in /etc/nsswitch.conf for passwd, shadow and group entries
(I'm running lightdm 2.0.1-r1)
The `man nsswitch.conf` says:
Compatibility mode (compat)
The NSS "compat" service is similar to "files" except that it additionally permits special entries in corre‐
sponding files for granting users or members of netgroups access to the system. The following entries are
valid in this mode: _________________ Life is too short to be taken seriously. |
|
Back to top |
|
|
roki942 Apprentice
Joined: 18 Apr 2005 Posts: 285 Location: Seattle
|
Posted: Sat Mar 31, 2018 6:19 am Post subject: |
|
|
`VL wrote: | Hello,
I was able to fix it by replacing 'compat files' to just 'files' in /etc/nsswitch.conf for passwd, shadow and group entries
(I'm running lightdm 2.0.1-r1)
The `man nsswitch.conf` says:
Compatibility mode (compat)
The NSS "compat" service is similar to "files" except that it additionally permits special entries in corre‐
sponding files for granting users or members of netgroups access to the system. The following entries are
valid in this mode: | Solves it for me
Thank you! |
|
Back to top |
|
|
|