An Exploring South African

Things to do in Cape Town, the Helderberg, and the Cape Winelands

Menu

Skip to content
  • About
  • Explore

Ubuntu: How to Disable Automatic Login (auto-login) via a Terminal CodeUnit 26 AUG 2011

I often configure my Ubuntu desktops to auto login if they are intended for single user usage. However, this was recently a cause for much headaches when I decided to update my installation from Maverick Meerkat to the then newly released, 11.04 Natty Narwhal.

What a disaster.

As the desktop I installed on was pretty old, it didn’t meet the necessary hardware requirements to run Unity, and in fact, couldn’t even successfully run Ubuntu with visual effects without falling over! Now although Natty Narwhal does a check on login to make sure you can run Unity, it does default to Ubuntu (classic) without giving you any further choice in the matter, a problem because my automatically logged in desktop could no longer function as no menu or window interface actually worked any more!

To get around this I would need to change the login setting to “Ubuntu Classic (with no effects)”, but seeing as this could only be done from the login screen, I would first have to disable automatic login via a terminal, which I could at least still reach through the standard Alt+Ctrl+F1 combination.

Right, so after logging into the terminal as the auto-login user craig, I could then edit the all important gdm custom.conf file like so:

sudo nano /etc/gdm/custom.conf

Once inside, lookout for the AutomaticLoginEnable key and set its value to false.

Your file should now look something like this:

[daemon] 
AutomaticLoginEnable=false 
AutomaticLogin=craig 
TimedLoginEnable=false 
TimedLogin=craig 
TimedLoginDelay=10 
DefaultSession=gnome-2d 

Save and restart, happy in the knowledge that your machine will no longer attempt to automatically login, giving you the necessary chance to switch the shell setting at your leisure! :)

  • Click to share on Twitter (Opens in new window)
  • Click to share on Facebook (Opens in new window)
  • Click to share on Reddit (Opens in new window)
  • Click to share on Pinterest (Opens in new window)

Related

Friday 26/08/2011CodeUnitautologin, automatic login, custom.conf, login, terminal, ubuntuCraig Lotter

About Craig Lotter

Software developer, husband and dad to two little girls. Writer behind An Exploring South African. I don't have time for myself any more. View all posts by Craig Lotter →

Post navigation

← Review: Sumvision Cyclone Micro 2+ Joke Factory: Doggy-style →

An Exploring South African

Curiosity, travel, and discovering new places. Craig Lotter's An Exploring South African is primarily a South African travel blog of things to do in and around Cape Town, the Helderberg, and the Cape Winelands.

Craig Lötter

A South African software developer at Touchwork, Craig Lotter is a husband to a cake baker, father to two young girls, and someone who is constantly looking for new places to explore. He is also not that bad of a writer either.

   

Instagram

Subscribe via Email

Enter your email address to subscribe to this blog and receive notifications of new content via email.

Copyright © 2007-2021 Craig Lotter | Rugged Rock Studio | Proudly powered by WordPress