To change the login settings from the command line in ubuntu 10.04 edit /etc/gdm/custom.conf
e.g. sudo nano /etc/gdm/custom.conf

I found this useful when administering a remote machine.