CIS ISO NIST CSF Essentials SOC

Automatic login is off

How to disable Automatic login

GNOME (Ubuntu, Fedora, etc.)

  • Open Settings
  • Navigate to Users
  • Click on your user account
  • Turn off Automatic Login

KDE Plasma

  • Open System Settings
  • Go to Startup and ShutdownLogin Screen (SDDM)
  • In the Advanced tab, ensure Automatically log in is set to None

XFCE

  • Open Settings Manager
  • Click on Users and Groups
  • Ensure automatic login is disabled for all user accounts

Command Line Method

For systems using GDM (GNOME Display Manager):

sudo nano /etc/gdm3/custom.conf

Ensure these lines are commented out or removed:

# AutomaticLoginEnable=true
# AutomaticLogin=username

For systems using LightDM:

sudo nano /etc/lightdm/lightdm.conf

Ensure these lines are commented out:

# autologin-user=
# autologin-user-timeout=0

More Linux checks