Bug 13849 - Login screen (kdm) lists several system users
Summary: Login screen (kdm) lists several system users
Status: RESOLVED FIXED
Alias: None
Product: Mageia
Classification: Unclassified
Component: RPM Packages (show other bugs)
Version: Cauldron
Hardware: All Linux
Priority: Normal minor
Target Milestone: ---
Assignee: Mageia Bug Squad
QA Contact:
URL:
Whiteboard: 5alpha2
Keywords:
: 14083 (view as bug list)
Depends on:
Blocks:
 
Reported: 2014-08-03 18:04 CEST by Carolyn Rowse
Modified: 2014-09-12 13:36 CEST (History)
12 users (show)

See Also:
Source RPM: mageia-kde4-config, kdebase4-workspace
CVE:
Status comment:


Attachments

Description Carolyn Rowse 2014-08-03 18:04:00 CEST
Description of problem:

I have alpha2 running in a VM having installed to hard disk from the Live KDE DVD.  At login I'm presented with a list of users besides myself:

system user for avahi
avahi

system user for avahi
avahi-autoipd

system user for chrony
chrony

system user for chrony
colord

system user for davfs2
davfs2

system user for dbus
messagebus

system user for nfs-utils
rpcuser

system user for openssh
sshd

system user for polkit
polkitd

system user for rpcbind
rpc

system user for rpm
rpm

system user for rtkit
rtkit

system user for usbmuxd
usbmux



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


How reproducible:


Steps to Reproduce:
1.
2.
3.


Reproducible: 

Steps to Reproduce:
Carolyn Rowse 2014-08-03 18:04:14 CEST

Whiteboard: (none) => 5alpha2

David Walser 2014-08-03 23:33:02 CEST

CC: (none) => mageia

Comment 1 Colin Guthrie 2014-08-04 09:54:07 CEST
Interesting! Can you tell me the UIDs for some of those users please (i.e. just run "id rtkit" and "id avahi").

Although I changed the limits, I've not yet pushed anything that should create users above 500... would be interesting to see if the numbers are above or below the 500 limit!
Comment 2 Colin Guthrie 2014-08-04 09:55:25 CEST
Actually, to be fair certain tools do seem to be counting down from the upper limit when creating IDs so this is probably expected. I'll look into fixing it up.

Can I ask what DM you're using? kdm?
Comment 3 James Kerr 2014-08-04 11:57:27 CEST
I have the same result on a clean net install of current cauldron (64 bit). Using KDM, the system users listed in the login dialogue have UID between 991 and 999. (Other system users are not listed in the login dialogue.)
Comment 4 Colin Guthrie 2014-08-04 12:33:48 CEST
Cool, thanks James. I kinda expected this, so that's all good. Thanks for confirming.

It'll be easy enough to patch, but I'm just going to wait and see with KDE guys whether or not we can perhaps ditch KDM completely (it's horrible!) and switch to something less creaky and old before MGA5 before I put any effort into patching it.

CC: (none) => mageia

claire robinson 2014-08-08 17:01:54 CEST

CC: (none) => eeeemail

Comment 5 William Kenney 2014-08-08 22:39:33 CEST
MCC -> System -> Manage users on system

Displays all those users as users and "locked"

CC: (none) => wilcal.int

Comment 6 Colin Guthrie 2014-08-09 12:20:51 CEST
(In reply to William Kenney from comment #5)
> MCC -> System -> Manage users on system
> 
> Displays all those users as users and "locked"

I've already fixed that one, but need to do a drakuser release.
Manuel Hiebel 2014-08-09 13:04:52 CEST

Summary: Login screen after installing Live KDE DVD i586 lists several system users => Login screen (kdm) lists several system users

Comment 7 Marja Van Waes 2014-08-09 13:59:57 CEST
I have something similar with LightDM, when booting into an XFCE-only install (dual iso, 32bits, pre-Mageia5a2), I can choose  between:

"system user for openssh"
and the normal user.

when running drakboot, I can choose autologin for the normal user, but also for:

avahi,
avahi-autoipd
colord
lightdm
messagebus
polkitd
postfix
rpc
rpcuser
rpm
sshd

avahi: uid=998, gid=996
avahi-autoipd: uid=997, gid=995
colord: uid=995, gid=993
lighdm: uid=992, gid=985
sshd has uid=993, gid=987
(didn't check the others)

Should this go into a separate bug report, or is the culprit the same as for the KDM problem?

CC: (none) => marja11

Comment 8 Maurice Batey 2014-08-10 19:25:55 CEST
Same here (UID's are 991-998).

CC: (none) => maurice

Comment 9 Maurice Batey 2014-08-25 19:45:00 CEST
Just installed Mageia-5A2 on netbook and requested UID 1500, just as an experiment.
  But still get the 991-998 UID's showing at Login...
Comment 10 Colin Guthrie 2014-08-25 22:46:16 CEST
(In reply to Maurice Batey from comment #9)
> Just installed Mageia-5A2 on netbook and requested UID 1500, just as an
> experiment.
>   But still get the 991-998 UID's showing at Login...

Yes this is expected at present as no changes have been added to kdm - still quietly hoping we can drop it, but I will patch it if needs be.
Comment 11 Bit Twister 2014-08-26 15:35:21 CEST
(In reply to Maurice Batey from comment #9)
> Just installed Mageia-5A2 on netbook and requested UID 1500, just as an
> experiment.
>   But still get the 991-998 UID's showing at Login...

You might try locate /usr/share/config/kdm/kdmrc and see if you have a newrpm for it.

I thought it set MinShowUID=1000 to fix the problem.

If nothing else  grep MinShowUID /usr/share/config/kdm/kdmrc to check your setting.

CC: (none) => junknospam

Comment 12 Maurice Batey 2014-08-26 16:14:10 CEST
$ locate share/config/kdm/kdmrc
/usr/share/config/kdm/kdmrc
/var/lib/mageia/kde4-profiles/Default/share/config/kdm/kdmrc
/var/lib/mageia/kde4-profiles/Default/share/config/kdm/kdmrc.rpmnew

$ grep MinShowUID /usr/share/config/kdm/kdmrc
MinShowUID=500
Comment 13 Bit Twister 2014-08-26 18:26:22 CEST
(In reply to Maurice Batey from comment #12)
> $ locate share/config/kdm/kdmrc
> /usr/share/config/kdm/kdmrc
> /var/lib/mageia/kde4-profiles/Default/share/config/kdm/kdmrc
> /var/lib/mageia/kde4-profiles/Default/share/config/kdm/kdmrc.rpmnew
> 
> $ grep MinShowUID /usr/share/config/kdm/kdmrc
> MinShowUID=500


You might want to do a

diff -bBw var/lib/mageia/kde4-profiles/Default/share/config/kdm/kdmrc /var/lib/mageia/kde4-profiles/Default/share/config/kdm/kdmrc.rpmnew

to see what changes you have not incorporated.
Comment 14 Maurice Batey 2014-08-26 18:49:26 CEST
The Mga5A2 installation is fully updated.

I note from what Colin said in #10 above:

"Yes this is expected at present as no changes have been added to kdm - still quietly hoping we can drop it, but I will patch it if needs be."

So I don't really see what I can do about it, apart from reporting it. :-)
Comment 15 Ben McMonagle 2014-09-08 22:02:00 CEST
not sure if this applies to this bug

Mga5A x86-64 re-installation onto real hardware from usb.
I did not format /. or /home.
At the set up user page the " login name box " gives these options :
cache, db, empty, home, lib, local, lock, log, nis, opt, preserve, run, spool, tmp, yp.

accessable via the 4 arrow keys.

This does not occur for me in a vm from the same iso. installed in the same way.
I have re-run the installation several times after finding this to see if it was a " one off ", but every time it occurs.

At login I get the list as per the bug report.

CC: (none) => westel

Comment 16 Ben McMonagle 2014-09-09 02:28:31 CEST
should be Mga5A2
Comment 17 David Walser 2014-09-10 18:24:01 CEST
*** Bug 14083 has been marked as a duplicate of this bug. ***

CC: (none) => bjarne.thomsen

Comment 18 Colin Guthrie 2014-09-11 00:20:26 CEST
OK, this should now be addressed. Luc earlier changed the default to 1000. I've now added another patch to heuristically determine if users in the 500-999 range should be displayed. It should work fine in most cases.

If there are upgrade issues where users are left with old configs, we should still fix that, so leaving this bug open to see if that's the case.
Comment 19 Luc Menut 2014-09-11 09:17:01 CEST
(In reply to Colin Guthrie from comment #18)
> OK, this should now be addressed. Luc earlier changed the default to 1000.
> I've now added another patch to heuristically determine if users in the
> 500-999 range should be displayed. It should work fine in most cases.

Thanks Colin for this patch.

> 
> If there are upgrade issues where users are left with old configs, we should
> still fix that, so leaving this bug open to see if that's the case.

It's the case, on purpose before your patch.
The default kdm configuration is provided by mageia-kde4-config. In mageia-kde4-config-5-0.20140816.1, I increased MinShowUID to 1000 but only for new installs, not on upgrade. I will fix and push a new mageia-kde4-config this evening to fix this.

CC: (none) => lmenut

Comment 20 Angelo Naselli 2014-09-11 09:20:18 CEST
@Colin sorry for bother you, but have you patched userdrake also again? or just kde4?

CC: (none) => anaselli

Comment 21 Bjarne Thomsen 2014-09-11 09:35:03 CEST
..and there is also "Set up autologin in .." in MCC
Comment 22 Colin Guthrie 2014-09-11 10:35:35 CEST
(In reply to Angelo Naselli from comment #20)
> @Colin sorry for bother you, but have you patched userdrake also again? or
> just kde4?

This is just kde, no further changes to userdrake


(In reply to Bjarne Thomsen from comment #21)
> ..and there is also "Set up autologin in .." in MCC

Ahh good point (tho' I think that config is pretty broken these days - separate autologin package doesn't work in a nice way and I'm not 100% sure this configures GDM correctly - KDM is probably OK, but when we switch to non-KDM world it'll likely break there too). Still I'll make sure it's fixed up.
Comment 23 Colin Guthrie 2014-09-11 10:36:07 CEST
(In reply to Luc Menut from comment #19)
> (In reply to Colin Guthrie from comment #18)
> > If there are upgrade issues where users are left with old configs, we should
> > still fix that, so leaving this bug open to see if that's the case.
> 
> It's the case, on purpose before your patch.
> The default kdm configuration is provided by mageia-kde4-config. In
> mageia-kde4-config-5-0.20140816.1, I increased MinShowUID to 1000 but only
> for new installs, not on upgrade. I will fix and push a new
> mageia-kde4-config this evening to fix this.

Awesome! Thank you very much Luc. Much appreciated :)
Comment 24 Luc Menut 2014-09-11 23:03:45 CEST
I've just pushed mageia-kde4-config-5-0.20140816.2.mga5 that should update MinShowUID to 1000 in kdmrc, both on update and new installs.
With Colin's patch for kdm (kdebase4-workspace-4.11.11-6.mga5), this bug should be now fixed.

Hardware: i586 => All
Source RPM: (none) => mageia-kde4-config, kdebase4-workspace

Comment 25 Barry Jackson 2014-09-11 23:46:01 CEST
(In reply to Luc Menut from comment #24)
> I've just pushed mageia-kde4-config-5-0.20140816.2.mga5 that should update
> MinShowUID to 1000 in kdmrc, both on update and new installs.
> With Colin's patch for kdm (kdebase4-workspace-4.11.11-6.mga5), this bug
> should be now fixed.

Works for me!
I use 500 and now KDM shows only me :)

CC: (none) => zen25000

Comment 26 Luc Menut 2014-09-12 09:03:04 CEST
So closing.
Feel free to reopen if needed.

Status: NEW => RESOLVED
Resolution: (none) => FIXED

Comment 27 Maurice Batey 2014-09-12 13:36:54 CEST
> Barry Jackson 2014-09-11 23:46:01 CEST
> Works for me!
> I use 500 and now KDM shows only me :)

  Same here! Excellent...

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