Automatic login

Also known as: auto-login

On this page 7

Automatic login (also called auto-login) is an operating system feature that signs a preconfigured user account in at boot without displaying the login screen or asking for credentials. In operating systems, it belongs to the management of user accounts: the system stores enough secret material to authenticate one account on its own, so the desktop appears as soon as startup finishes.

The feature removes a step for single-user machines, kiosks and appliances, but it also removes the authentication barrier between physical access and the user session. Understanding where the credential is stored, which protections still apply and what an attacker gains is essential before enabling it on any device.

How automatic login works at startup

Automatic login works by having the display manager or logon subsystem authenticate on behalf of the user using a stored credential or a configuration flag. Instead of waiting for input, the login component reads its settings, identifies the designated account and starts a normal user session with that account’s profile, groups and privileges.

The mechanism differs by platform. On Windows, the Winlogon process reads values such as AutoAdminLogon and DefaultUserName; the password is kept either as an LSA secret or, in legacy setups, as a plain-text DefaultPassword registry value. On macOS, the loginwindow process uses an obfuscated password file at /etc/kcpassword. On Linux desktops, display managers such as GDM, LightDM and SDDM accept an autologin option and use a dedicated PAM service that skips password verification for that account.

The following table summarizes how the major desktop platforms implement the feature.

PlatformWhere it is configuredHow the credential is held
WindowsWinlogon registry keys or the netplwiz dialogLSA secret or legacy plain-text registry value
macOSUsers and Groups settingsReversibly obfuscated kcpassword file
Linux (GDM)custom.conf in the GDM directoryNo password stored; PAM autologin service
Linux (LightDM, SDDM)Display manager configuration fileNo password stored; account named in config
Automatic login implementations by platform

A key consequence follows from this design: when a password is stored, it is stored in a recoverable form, because the system must be able to present it without the user. Obfuscation is not encryption, and anyone with administrative or offline disk access can usually recover it.

Security effects of automatic login

The central trade-off is that automatic login converts physical possession into full account access. Anyone who can power on the device receives the session of the configured user, including open mail clients, browser sessions, cached tokens and synchronized cloud storage.

Several platform protections interact with the feature. Full-disk encryption such as FileVault blocks automatic login on macOS because the disk must be unlocked by a user first. BitLocker with TPM-only protection still allows it on Windows, which means the encryption no longer protects data from someone holding the powered-off laptop. Keychains and credential vaults are another casualty: on Linux, the GNOME Keyring cannot be unlocked automatically without a password, so applications prompt for it later.

ProtectionEffect of enabling automatic loginPractical result
Full-disk encryptionWeakened or blocked, depending on platformStolen device may expose all data
Login keychain or keyringNot unlocked or unlocked with a stored secretExtra prompts or reduced secret protection
Windows Hello and biometricsBypassed at startupNo identity check before the desktop
Account lockout policyNot exercised at bootNo brute-force protection is needed by an attacker
Audit trailLogons attributed to one accountWeaker accountability on shared hardware
Protections affected by automatic login

For these reasons, organizational security baselines generally prohibit automatic login on managed endpoints, and many mobile device management profiles disable it explicitly. The setting should be treated as a conscious exception, never as a default.

Automatic login is often confused with features that also shorten access to the desktop. The differences matter, because each one leaves a different level of protection in place.

FeatureWhat it skipsRemaining protection
Automatic loginThe entire login screen at bootNone at startup
Kiosk modeAccess to the general desktopRestricted shell, often with automatic login
Guest accountPersonal credentialsIsolated, temporary profile
Fast user switchingClosing other sessionsEach switch still requires authentication
Disabled lock screenLocking after idle timeLogin still required at boot
How automatic login differs from neighboring features

In well-designed deployments, automatic login is combined with a low-privilege standard user account rather than an administrator account. Signing an administrator in automatically hands every visitor the ability to install software and change system settings, subject only to privilege elevation prompts.

When automatic login is appropriate

Automatic login is appropriate where the device itself is physically controlled or where the session contains nothing worth protecting. Typical cases are digital signage, public information terminals, laboratory instruments, home theater computers and single-purpose appliances that must recover unattended after a power failure.

The decision table below gives a practical starting point.

SituationRecommendationReason
Corporate laptopDo not enableTheft exposes company data and credentials
Shared family computerDo not enableEach member needs a separate profile
Digital signage playerEnable with a dedicated accountUnattended recovery after reboots
Public kioskEnable with kiosk modeRestricted shell limits what visitors can do
Desktop in a locked home officeAcceptable with carePhysical access is already controlled
Decision guide for enabling automatic login

When the feature is enabled, good practice is to use a dedicated account with minimal rights, keep no personal mail or saved passwords in it, enable the lock screen after a short idle period, and document the exception so it can be reviewed.

Common mistakes and misconceptions

Most problems with automatic login come from underestimating what the stored credential reveals or from forgetting that the setting exists.

  • Assuming the stored password is safe: on Windows and macOS it is recoverable by an administrator or from an unencrypted disk.
  • Reusing the account password elsewhere, so a recovered automatic login secret unlocks email or cloud services as well.
  • Enabling it on an administrator account for convenience, which turns every passer-by into an administrator.
  • Believing that encryption still protects the device; with TPM-only BitLocker the disk is unlocked before anyone authenticates.
  • Leaving the setting active after repurposing a kiosk into a normal workstation.

A domain-joined computer adds another trap: a domain password stored for automatic login stops working after the password expiration interval, and the machine silently returns to the login screen until someone updates the stored secret.

In everyday language

Automatic login means the computer opens your desktop by itself when it starts, without asking for your password. It is like a house where the front door opens on its own every morning, so you never need a key.

That is convenient, but the door also opens for anyone else who walks up. The convenience and the risk are the same thing: whoever turns the computer on gets everything the account can see. It makes sense for a screen showing timetables in a train station, not for a laptop you carry around.

Seen in the real world

A regional museum runs twelve touch-screen information terminals that display exhibit guides. Power is cut every night when the building closes, and staff do not want to type passwords on each terminal every morning.

The IT technician creates a local standard account called exhibit with no email, no saved passwords and no administrator rights. Automatic login is enabled for that account, and kiosk mode restricts the session to a single full-screen browser pointed at the guide application. Administrative work is done through a separate account that requires a password.

The outcome is that all twelve terminals start unattended within two minutes of power returning, while a visitor who restarts a terminal gains nothing beyond the guide screen. When the museum later loans one terminal to a staff office, the technician disables automatic login first, because the device no longer sits in a controlled public setting.