How to disable Gnome login User Name list on Ubuntu 10.4

Posted to http://ubuntuforums.org/showthread.php?p=9487803 Sun 20 Jun 2010 about 01:56 PM CDT.

I am in the process of trying out Ubuntu 10.4 (upgrading from 8.04) and I agree that the "Login panel is worse from security view point", in my case 'cos I don't want to see the list however long or short it might be, and don't mind typing in my userID. I was surprised to find that the "Hide user list" option is now gone from the applet at System / Login Screen on 10.4.

Looking into this, I found quite a long thread on the subject for Karmic Koala http://ubuntuforums.org/showthread.php?t=1287054&page=1. That thread has been closed for a while. It contains a lot of discussion, but I gather that the main reason this was changed was that GDM was changed and various little applets like this one just haven't caught up yet.

I can live with that. It's "No biggie" in my Home Office tho' it would be in various places I've worked. I still wanted to change it anyway.

I followed what was done, tried it out, and even got it work but only using the gconf-editor GUI as follows:

To start with, I went:

 - press ALT+F2 and type
 - gksu gconf-editor
 - then navigate to /apps/gdm/simple-greeter
 - and check disable_user_list.

However, this didn't work after Logout/Login, nor after a reboot, , so I fiddled with it a bit more and realized that I probably needed to do "Set as Mandatory":

 - Go Applications/System Tools/Configuration Editor
 - Select /apps/gdm/simple-greeter
 - Check disable_user_list
 - Then right mouse click on the key name ... 
 - and click "Set as Mandatory".

"Set Default" is also an option. This makes sense 'cos you can set these keys at various levels, and it's the system level that you want to change.

 - It should at this point ask for your Admin password
 - Close the editor using File/Close
 - Log off and it should be working as you want (i.e. no user name list). [P.S. do you have to reboot?]

Here's a picture of my gconf-editor while doing this:

Note that under Key Documentation it says "! This key is not writable".

Of course you can also sudo gconf-editor to start the GUI from the command line but I think you probably still have to "Set as Mandatory" or "Set as Default" in the GUI in order to get pleasing results. I'm not 100% certain of this, but the above works for me using gconf-editor only.

I also looked into whether or not the 100% command line solution might now require some extra switch in order to select Mandatory or Default. I didn't find out anything definite yet. After my change /etc/gconf/gconf.xml.mandatory/%gconf-tree.xml says:


<?xml version="1.0"?>
<gconf>
        <dir name="apps">
                <dir name="gdm">
                        <dir name="simple-greeter">
                                <entry name="disable_user_list" mtime="1277021518" type="bool" value="true"/>
                        </dir>
                </dir>
        </dir>
</gconf>

And /etc/gconf/gconf.xml.default/%gconf-tree.xml says the same.

Finally, I did try:

sudo -u gdm gconftool-2 --set --type boolean /apps/gdm/simple-greeter/disable_user_list false

And I got this message:

Error setting value: Cannot overwrite existing read-only value: Value for `/apps/gdm/simple-greeter/disable_user_list' set in a read-only source at the front of your configuration path

This is on Ubuntu Desktop 10.4 where [CODE]uname -a[/CODE] says:

Linux cara 2.6.32-22-generic #36-Ubuntu SMP Thu Jun 3 22:02:19 UTC 2010 i686 GNU/Linux

So, it gets curiouser and curiouser, but at least I have the setting I want, and I used gconf-editor to do it, and now i have written it up so I'll be able to remember it.

Have a nice day,

[End - version 2010-06-20 15:43 CDT].