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.
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; seeman pam_succeed_if
for details):If you want to hide entire list open the terminal and enter the following comamnd :
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:
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