Page 1 of 1

User name at login screen -- visible or not? SOLVED

Posted: 13 Jan 2020 19:52
by UncleSam
How do I configure KDE to NOT display (for security reasons) my user name at the login dialog box ?

Re: User name at login screen

Posted: 13 Jan 2020 21:55
by bas_otten
For that you specify a line 'greeter-hide-users=true' in /etc/lightdm/lightdm.conf
Good luck, Bas

Re: User name at login screen

Posted: 14 Jan 2020 07:53
by Arjen Balfoort
Note that greeter-hide-users by default is set to false.

Re: User name at login screen

Posted: 15 Jan 2020 18:00
by UncleSam
I changed the variable in the file as you suggested, Bas. It worked after a system restart. Thank you, Bas.

Thank you, Arjen for reminding me to document what I changed in /etc/lightdm/lightdm.conf and why.

Re: User name at login screen -- visible or not? SOLVED

Posted: 31 Jan 2020 15:00
by UncleSam
Strange!
After reappearance of user names at the login screen this morning, I
looked at /etc/lightdm/lightdm.conf and saw two lines that said

Code: Select all

greeter-hide-users=false
greeter-hide-users=false
which I have since deleted from the file.
The file's modification date/time was dated 1:23am this morning.

I ran #apt-get update && apt-get upgrade
and
#apt autoremove
at around this time. Could one of these commands have added the
two lines?
As you can see, my two lines were still in the file:

Code: Select all

user@solydk1:~$ nl /etc/lightdm/lightdm.conf | grep "greeter-hide-users"
    65  # greeter-hide-users = True to hide the user list
   108  #Jan 15, 2020 changed greeter-hide-users from "false" (default)
   110  greeter-hide-users=true
user@solydk1:~$ wc -l /etc/lightdm/lightdm.conf
171 /etc/lightdm/lightdm.conf
[/code]

Re: User name at login screen -- visible or not? SOLVED

Posted: 31 Jan 2020 15:30
by Arjen Balfoort
I hope you did not remove or comment the "greeter-hide-users=false" line. It should be there or the default will get inserted again.
You just need to replace "false" with "true".

Re: User name at login screen -- visible or not? SOLVED

Posted: 01 Feb 2020 00:43
by UncleSam
No, I haven't changed /etc/lightdm/lightdm.conf since Jan. 8th.
That is why I called it strange to see two lines
greeter-hide-users=false
appended to it on Jan. 30.
and so asked here whether apt or apt-get might have done it.

However, I just looked at it again and saw,

Code: Select all

sam@solydk1:~$ ls -Fdltr /etc/lightdm/lightdm.conf
-rw-r--r-- 1 root root 7128 Jan 31 09:19 /etc/lightdm/lightdm.conf
so maybe I am wrong. (I often am.) Or ignorant of all processes affecting
this file.
Maybe I am just being paranoid.

Code: Select all

sam@solydk1:~$ nl /etc/lightdm/lightdm.conf | grep "greeter-hide-users"
    65  # greeter-hide-users = True to hide the user list
   108  #Jan 15, 2020 changed greeter-hide-users from "false" (default)
   110  greeter-hide-users=true 
I will post again if I see a user's list with more than zero entries on my log-in dialog box.
Until then, Bon Voyage.
Thanks, Arjen, for reading this.

Re: User name at login screen -- visible or not? SOLVED

Posted: 23 Jun 2020 13:52
by UncleSam
This flag keeps getting reset to false about every other month. I don't realize it has been reset until I login the next day and see my full username, first name and last name, displayed in the login dialog box.

Re: User name at login screen -- visible or not? SOLVED

Posted: 23 Jun 2020 14:33
by Arjen Balfoort
What if you change the conf file and then make it readable only?

Re: User name at login screen -- visible or not? SOLVED

Posted: 23 Jun 2020 16:16
by UncleSam
Great idea! I removed write access for superuser. Now it is read-only. I will report back in a couple months if this works. Unless this breaks something else, in which case I will report back immediately.