Disable auto-login from the CLI
16,538
Create or modify the file /etc/gdm/custom.conf
, and write the following content:
[daemon]
TimedLoginEnable=false
AutomaticLoginEnable=false
TimedLogin=enzotib
AutomaticLogin=enzotib
TimedLoginDelay=30
DefaultSession=gnome
where enzotib
should be replaced with your username and gnome
could be replaced by
gnome
- for Ubuntugnome-classic
- for Ubuntu classicgnome-2d
- for Ubuntu classic (no effects)
Related videos on Youtube
Author by
Tracy Wang
Updated on September 18, 2022Comments
-
Tracy Wang over 1 year
After successfully installing Ubuntu and logging in to the Unity desktop, I followed the prompts to enable the proprietary display drivers.
After rebooting, the Unity desktop is now entirely unresponsive. The mouse pointer moves but I can't do anything.
After some research, it looks like it is specifically a problem with these drivers and Unity, so I should be OK with, say, the classic Gnome desktop.
Unfortunately, I enabled auto login so I don't get the chance to chose another desktop. Can I fix this from the CLI?
-
Admin over 9 yearsMore up to date: askubuntu.com/questions/106428/how-to-disable-automatic-login
-