Steps to enable automatic login without asking for the password in GNOME, KDE, and Ubuntu /usr/share/lightdm/lightdm.conf.d/60-lightdm-gtk-greeter.conf..