SDDM sddm.conf not followed / even overwritten by some system process

Hi,

I installed Leap 42.2 with standard KDE / SDDM. To suppress some users from login, I added to /etc/sddm.conf a [Users] section and a HideUsers line:

*— vi /etc/sddm.conf ----------------------
[Theme]
Current=breeze-openSUSE
CursorTheme=breeze_cursors

[XDisplay]
ServerPath=/usr/bin/X
SessionCommand=/etc/X11/xdm/Xsession
DisplayCommand=/etc/X11/xdm/Xsetup
MinimumVT=7

[Users]
HideUsers=media,scanuser,upnpd*
*------------------------------------------------------
*
Strange behavior 1:
If I now create a new session using the “Change user”, the first 2 users are hidden, the last ist not!
I had expected all 3 users to be hidden in SDDM

Strange behavior 2:
If I kill the new session using <CTRL> <ALT> <Backspace> this somehow overwrites sddm.conf, the HideUsers line is changed to
HideUsers=media,scanuser,^@1^@^@^@

If I change the order of the users, the behavior is similar, it is always the last user who is affected.*…

Is the HideUsers line the last line in sddm.conf? If so, does it end with a newline (ie is there a “blank” line following it)?

I had an empty line at the end when editing it with vi. However, the same process that replaces the last user with peculiar characters also removes the blank lines at the end. I can reproduce it.

  • Again setting the HideUsers line as in my first post
  • Add a blank link
  • Save with :x
  • Open a new session with “Change user”
    -> The HideUsers line gets a corrupted last user, all blank lines are removed
    -> The user upnpd will be displayed

Something really seems to overwrite the sddm.conf …