I am trying to hide users from login screen but it is not working when uising /etc/sddm.conf.d/
.
NOT working
➜ cat /etc/sddm.conf.d/hide.conf
[Users]
HideShells=/usr/bin/nologin,/usr/sbin/nologin
Works only if I add it in main conf
➜ grep HideShells /etc/sddm.conf
#HideShells=
HideShells=/usr/bin/nologin,/usr/sbin/nologin
➜ grep myuser /etc/passwd
myuser:x:1404:1404::/home/myuser:/usr/sbin/nologin
By default, SDDM is configured to displays only users with a UID in the range of 1000 to 60513. If the UIDs of the desired users are outside this range then you will have to modify the range. - SDDM - ArchWiki
So it begs the question - what do you want to achieve?
1 Like
I am trying to hide user myuser
with id 1404
from login screen.
I just pointed out that hiding with HideShells
works ok when using /etc/sddm.conf
but not when using a .conf
file inside /etc/sddm.conf.d/
dir.
It is good practice to have overrides inside conf.d/
dir because of updates which can overwrite conf files in /etc/
.
I don’t know if sddm is configured on manjaro/arch to not use /etc/sddm.conf.d/
or is this a bug?