Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Using Ubuntu 10.04.1 Desktop (Latest)

After the boot process, GDM shows the graphical login screen along with a list of users that can log in. Clicking a name will ask for its password.

I would like to modify that list and show only a restricted list of users.

(i.e., the other users may still be able to log in via the terminal access or 'su' - after Control-F4 for instance - but their login name should not appear on the Gnome login page).

Please let me know where to find that file(?). I would like to perform the change from the terminal window (not the graphical environment), after a ssh for instance.

share|improve this question
up vote 11 down vote accepted

In /etc/gdm/custom.conf, add the following stanza:


If you want an inclusive list, I think the following will work (though it will also show users who recently logged in by entering their name manually):


Users with a UID <1000 won't appear unless explicitly included (I don't this this is configurable). Any user can still log in by explicitly typing their user name.

Reference: gdm manual

If you want to forbid some users from logging in (as opposed to not showing their name and picture), add a filter to /etc/pam.d/gdm. Something like (untested; see man pam_succeed_if for details):

auth  required user ingroup may_log_in_with_gdm
share|improve this answer
Thank you for that very clear and complete answer. – ringø Aug 21 '10 at 15:27
Note: Changes will only take affect after a reboot. – Gili May 12 '11 at 20:46
@Gili: You don't need to reboot, but you do need to restart Gdm. The next time you log out to the Gdm prompt, press Ctrl+Alt+Backspace to restart the X server and the login manager. – Gilles May 12 '11 at 21:02
You can also restart GDM using sudo service gdm restart. – WirthLuce Aug 18 '11 at 15:12

If you want to hide entire list open the terminal and enter the following comamnd :

sudo gconftool-2 --direct --config-source xml:readwrite:/etc/gconf/gconf.xml.mandatory --type Boolean --set /apps/gdm/simple-greeter/disable_user_list True

For remove only some user for the list you need to change UID to a number < 1000

The gdm login list lists any Ubuntu login user with a UID >=1000

This means as long as you get a login set to use a UID <1000 it will NOT show up in the gdm login list.

here's how:

System -> Administration -> Users and Groups

Edit the user by click on properties, go to advanced, then change the "User ID" to a different number. Try and make sure it's not already used by another person by looking at /etc/passwd

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.