LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   elementary OS (https://www.linuxquestions.org/questions/elementary-os-112/)
-   -   Autologin doesn't work (resets after restart) (https://www.linuxquestions.org/questions/elementary-os-112/autologin-doesnt-work-resets-after-restart-4175711188/)

kokoko42 04-23-2022 11:45 PM

Autologin doesn't work (resets after restart)
 
Installed the last version of Elementary OS, updated. Setup in Users and accounts autologin (don't ask for password when system starts). Reboot the laptop, OS asks me for the password. Check settings and the checkbox is off for autologin. Turn it on. Reboot. Again asks for the password.

Any ideas?

aus9 04-27-2022 08:03 PM

Quote:

Check settings and the checkbox is off for autologin. Turn it on. Reboot. Again asks for the password
sounds like you ran some kind of GUI (graphical panel) as non-root which is why IMHO it did not work

try opening a terminal and getting root then edit the file /etc/lightdm/lightdm.conf so that the line changes from
#autologin-user=<YOUR USERNAME>
to
autologin-user=<YOUR USERNAME>

ref
https://elementaryos.stackexchange.c...entary-os-loki

Code:

sudo nano /etc/lightdm/lightdm.conf
use arrow keys to get to # and delete it
then press kb keys Ctrl (and) o (to over-write file).....follow the prompts to agree to over write file-name
then press kb keys Ctrl (and) x (to exit nano)


2) if that scares you....run sudo <name of text editor> /etc/lightdm/lightdm.conf in a terminal to achieve same outcome.


All times are GMT -5. The time now is 12:49 AM.