Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
problem with SDDM and HideUsers configuration
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Desktop Environments
View previous topic :: View next topic  
Author Message
freifunk_connewitz
Apprentice
Apprentice


Joined: 08 Feb 2006
Posts: 231

PostPosted: Tue Apr 12, 2016 7:56 pm    Post subject: problem with SDDM and HideUsers configuration Reply with quote

hi,
because with KDE5 KDM has been discontinued as a login manager, I installed SDDM, as recommended by the wiki. But then I had to realize that there was no config option that allowed to NOT being greeted with a user list or any user name at all upon login.

The man page of /etc/sddm.conf, however, mentions a HideUsers- and a RememberLastUser-option, so I manually added to that file:
Code:

[Users]
HideUsers=(here my username)
MaximumUid=65000
MinimumUid=64999
RememberLastUser=false


I changed the UID just to really get sure (my user account has Uid 1000).

But SDDM just ignores all those entries. It continues to show my user name on the login screen. No erros in logs.

Switching to another theme does not change that bug.

Switching to lightdm and xdm did not work because both of them don't seem to work with KDE5/plasma (after accepting the password follows a black screen with a cursor for a second, then the login screen appears again, both do not succeed in getting hold of an X session, but those are other problems).

Does anybody know if SDDM is still that beta or do I miss something?


Last edited by freifunk_connewitz on Thu Apr 14, 2016 2:17 pm; edited 2 times in total
Back to top
View user's profile Send private message
davidm
Guru
Guru


Joined: 26 Apr 2009
Posts: 557
Location: US

PostPosted: Tue Apr 12, 2016 9:40 pm    Post subject: Reply with quote

I read from this bug report:

https://bugzilla.redhat.com/show_bug.cgi?id=1238889

Quote:

It works for me, but, there's an interesting non-obvious quirk I just remembered.


RememberLastUser=false

only prevents sddm from updating /var/lib/sddm/state.conf to record *new* values for
user=

But, if state.conf already contains a
user=foo
value, that will continue to be used (and displayed) even after setting
RememberLastUser=false

So, to fully test this, either edit /var/lib/sddm/state.conf to include:

user=

or delete /var/lib/sddm/state.conf file altogether


Does also editting '/var/lib/sddm/state.conf' then resolve it? If not I notice there are other bugs about this:

https://bugzilla.redhat.com/show_bug.cgi?id=1297171
https://github.com/sddm/sddm/issues/560

See https://forums.gentoo.org/viewtopic-t-1035984.html
Back to top
View user's profile Send private message
freifunk_connewitz
Apprentice
Apprentice


Joined: 08 Feb 2006
Posts: 231

PostPosted: Wed Apr 13, 2016 9:12 am    Post subject: Reply with quote

edit: thank you, davidm, for the hint. but it seems SDDM is buggy. it does write the user name into /var/lib/sddm/state.conf even if the config file told it otherwise. that means: i clean the entry from /var/lib/sddm/state.conf, logout, restart X, et voila: no user name shown. I log in, log out again, et voila, state.conf has been updated with my user name...

the linked bug at github refers to all HideUsers-entries *after* the first one in sddm.conf. in my case also the first one is ignored. the other options (shown userIDs, remember last user) are ignored or misread as well, the whole [Users]-section of the config file is just useless.
Back to top
View user's profile Send private message
freifunk_connewitz
Apprentice
Apprentice


Joined: 08 Feb 2006
Posts: 231

PostPosted: Thu Apr 14, 2016 2:56 pm    Post subject: Reply with quote

for now, I just installed a stop-script in /etc/local.d that removes /var/lib/sddm/state.conf upon shutdown. ugly workaround but since they took away KDM: no choice.

before I think about registering at another platform (github) in order to file a SDDM bug: can anybody else reproduce that problem?
Back to top
View user's profile Send private message
DevLinux
n00b
n00b


Joined: 29 Jul 2015
Posts: 8

PostPosted: Tue Apr 26, 2016 8:37 pm    Post subject: Reply with quote

I'm also having the same problem. I switched to the Elarun theme to keep from having the Windows style user list, but now I just have a username in the box instead.

I did try setting MinimumUid to a number above the highest uid. Wouldn't recommend that on the Breeze theme at least. I had a password box with no way to enter a username.

Honestly, I feel like Plasma/KDE5 was pushed to stable a little too soon. Seems to work as long as you don't touch anything.
Back to top
View user's profile Send private message
freifunk_connewitz
Apprentice
Apprentice


Joined: 08 Feb 2006
Posts: 231

PostPosted: Mon May 02, 2016 6:35 pm    Post subject: Reply with quote

DevLinux wrote:
Honestly, I feel like Plasma/KDE5 was pushed to stable a little too soon. Seems to work as long as you don't touch anything.

So do I, though it's not as horrible as the KDE3>4 migration has been...

Here's my bug report from 2 weeks ago, but nobody of the SDDM team reacted so far...:
https://github.com/sddm/sddm/issues/626
Back to top
View user's profile Send private message
asturm
Developer
Developer


Joined: 05 Apr 2007
Posts: 8936

PostPosted: Mon May 02, 2016 6:57 pm    Post subject: Reply with quote

You don't have to fight with SDDM at all cost, you can always use lightdm instead which might have more features in some respects.
Back to top
View user's profile Send private message
freifunk_connewitz
Apprentice
Apprentice


Joined: 08 Feb 2006
Posts: 231

PostPosted: Tue May 03, 2016 7:17 pm    Post subject: Reply with quote

genstorm wrote:
You don't have to fight with SDDM at all cost, you can always use lightdm instead which might have more features in some respects.


I tried, but that was even worse, lightdm wasnt even able to start the DE (see OP).
Back to top
View user's profile Send private message
asturm
Developer
Developer


Joined: 05 Apr 2007
Posts: 8936

PostPosted: Tue May 03, 2016 7:23 pm    Post subject: Reply with quote

That does rather seem like you accidentally chose the Plasma (Wayland) session. Unfortunately, lightdm does not mark it as such and gives you a duplicate 'Plasma' selection.

Btw, this commit looks like it could solve your issue with SDDM: https://github.com/sddm/sddm/commit/ef7b3177adb3673a482c68cb62281cd9a5ca8e8d
Back to top
View user's profile Send private message
freifunk_connewitz
Apprentice
Apprentice


Joined: 08 Feb 2006
Posts: 231

PostPosted: Wed May 04, 2016 9:04 pm    Post subject: Reply with quote

genstorm wrote:
That does rather seem like you accidentally chose the Plasma (Wayland) session. Unfortunately, lightdm does not mark it as such and gives you a duplicate 'Plasma' selection.


No, it doesnt even work if I set session to Xsession.

Thanks for the commit link, lets hope next version will be working.
Back to top
View user's profile Send private message
asturm
Developer
Developer


Joined: 05 Apr 2007
Posts: 8936

PostPosted: Wed May 04, 2016 9:51 pm    Post subject: Reply with quote

You can try add it as a user patch. It applies cleanly.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Desktop Environments All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum