Bug 11401 - sddm minimum UID defaults to 1000 - potential upgrade issue for mga4 -> mga5
Summary: sddm minimum UID defaults to 1000 - potential upgrade issue for mga4 -> mga5
Status: RESOLVED FIXED
Alias: None
Product: Mageia
Classification: Unclassified
Component: RPM Packages (show other bugs)
Version: Cauldron
Hardware: All Linux
Priority: Normal normal
Target Milestone: ---
Assignee: Florian Hubold
QA Contact:
URL:
Whiteboard:
Keywords: Triaged
Depends on:
Blocks:
 
Reported: 2013-10-07 18:18 CEST by magnux77
Modified: 2014-11-29 18:51 CET (History)
3 users (show)

See Also:
Source RPM: sddm
CVE:
Status comment:


Attachments

Description magnux77 2013-10-07 18:18:23 CEST
Description of problem:
SDDM does not work out of the box
Cause configuration files are wrong.

Version-Release number of selected component (if applicable):


How reproducible:
systemctl disable lxdm.service ; systemctl enable sddm.service ; reboot 
To arrive on SDDM screen listing users to login

Steps to Reproduce:
1. /etc/sddm.conf 
    MinimumUid=1000 and Mageia users can not be listed
    MinimumUid must be set to 500 to list 
2. Error message "login failed" due to incorrect /etc/pam.d/sddm
3. When one does not know anything about PAM, stupid substituing content of /etc/pam.d/sddm by /etc/pam.d/lxdm makes the previous message disappear. But login still impossible.


Reproducible: 

Steps to Reproduce:
Manuel Hiebel 2013-10-08 00:24:16 CEST

Keywords: (none) => Triaged
Assignee: bugsquad => nicolas.lecureuil

Comment 1 magnux77 2013-10-08 10:48:30 CEST
Finally, SDDM can be installed but, even after install, it is never proposed in CCM as a Display  Manager.
Comment 2 Jüri Ivask 2014-07-12 13:03:22 CEST
Broken still in version 0.1.0-7.mga4 from October 2013...
Shouldn't sddm becoming the default dm for plasma 5 desktop instead of kdm...

CC: (none) => jyri2000

Comment 3 Jüri Ivask 2014-08-13 14:56:58 CEST
I have used version 0.9.0-6.mga5 for about a week now here (i586) and it seems to work mostly OK. Keyboard layout is detected only after you type something and localisation does not seem to work yet...
Comment 4 Georges Eckenschwiller 2014-08-24 08:18:27 CEST
I have just installed sddm-0.9.0-6.mga5.i586 on a test computer with IceWM-light

The file /etc/X11/wmsession.d/xxsddm is missing. 
Of this fact CCM does not find sddm.

I have no configuration file /etc/sddm.

CC: (none) => paiiou

Comment 5 Georges Eckenschwiller 2014-08-24 10:16:10 CEST
(In reply to Georges Eckenschwiller from comment #4)

> I have just installed sddm-0.9.0-6.mga5.i586 on a test computer with
> IceWM-light
> 
> The file /etc/X11/wmsession.d/xxsddm is missing. 
> Of this fact CCM does not find sddm.
Sorry, I made a confusion. the directory is for window manager, not for display manager.
CCM finds good sddm.

But sddm does not display. It could be due to the absence of /etc/sddm.conf

> 
> I have no configuration file /etc/sddm.conf
Comment 6 Jüri Ivask 2014-08-26 10:39:53 CEST
It seems, that /etc/sddm.conf is not needed for default conditions. I do not have this file either, but sddm works.
Did you try the instructions here:
http://mageia.nicolaslecureuil.fr/2014/08/some-work-on-sddm/
Comment 7 Georges Eckenschwiller 2014-08-26 11:49:11 CEST
(In reply to Jüri Ivask from comment #6)
> It seems, that /etc/sddm.conf is not needed for default conditions. I do not
> have this file either, but sddm works.
> Did you try the instructions here:
> http://mageia.nicolaslecureuil.fr/2014/08/some-work-on-sddm/

It did not solve the problem.
I prefer to open another report, because the conditions are not the same.
Comment 8 Florian Hubold 2014-10-24 21:34:06 CEST
The other issues mentioned by you cannot be reproduced here with current sddm, 0.9 or 0.10.

(In reply to epilip from comment #0)

> 1. /etc/sddm.conf 
>     MinimumUid=1000 and Mageia users can not be listed
>     MinimumUid must be set to 500 to list 

Well, there's no /etc/sddm.conf - and for new mga5 installations you would get a UID >= 1000. But I sense an upgrade issue here, as the default for MinimumUid is 1000, and default UIDs in mga4 are >= 500.

I see the same for an mga5a1 installation upgraded to current cauldron. uid=500, and sddm login screen does not offer any users to select.

CC: (none) => doktor5000
Summary: Once installed, SDDM doesn't work => sddm minimum UID defaults to 1000 - potential upgrade issue for mga4 -> mga5

Comment 9 Florian Hubold 2014-10-26 16:35:33 CET
Should be fixed with http://svnweb.mageia.org/packages?view=revision&revision=793486

Or in other words, the following contents of /etc/sddm.conf:

[Users]
MinimumUid=500
# hide system users
HideShells=/sbin/nologin,/bin/false

Status: NEW => ASSIGNED
Hardware: x86_64 => All
Assignee: mageia => doktor5000
Source RPM: sddm-0.1.0-6.mga4.src.rpm => sddm

Comment 10 Jüri Ivask 2014-11-21 09:26:43 CET
(In reply to Florian Hubold from comment #4 from bug 14606)
> No, please just add a comment to https://bugs.mageia.org/show_bug.cgi?id=11401 > and show me the /etc/passwd entry of that user - I'd need to know the shell to > hide it.

The only difference after the yesterday's sddm0.10.0-4.mga5 upgrade is the line:
colord:x:986:986:system user for colord:/var/lib/colord:/usr/sbin/nologin
so I guess the shell to hide should be /usr/sbin/nologin
Adding that to sddm.conf indeed hided that user.

> And please also the output of ls -al /etc/sddm.conf* - this may be a possible
> drawback of %config (noreplace) :/

#$ ls -al /etc/sddm.conf*
-rw-r--r-- 1 root root 3303 nov   21 10:06 /etc/sddm.conf
Comment 11 Florian Hubold 2014-11-21 21:55:31 CET
(In reply to Florian Hubold from comment #9)
> colord:x:986:986:system user for colord:/var/lib/colord:/usr/sbin/nologin

-.-

Due to UsrMove we now have /usr/sbin/nologin and /sbin/nologin ... which is actually the same thing. But not when used as a string as e.g. by sddm config. Added it, thanks for reporting :) 
Should be fixed now for everybody with sddm0.10.0-5.mga5
Comment 12 Florian Hubold 2014-11-29 18:51:39 CET
Closing this one as it's fixed in cauldron and also for mga4 via https://bugs.mageia.org/show_bug.cgi?id=14238

Status: ASSIGNED => RESOLVED
See Also: (none) => https://bugs.mageia.org/show_bug.cgi?id=14238
Resolution: (none) => FIXED


Note You need to log in before you can comment on or make changes to this bug.