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.
| Platform | Where it is configured | How the credential is held |
|---|---|---|
| Windows | Winlogon registry keys or the netplwiz dialog | LSA secret or legacy plain-text registry value |
| macOS | Users and Groups settings | Reversibly obfuscated kcpassword file |
| Linux (GDM) | custom.conf in the GDM directory | No password stored; PAM autologin service |
| Linux (LightDM, SDDM) | Display manager configuration file | No password stored; account named in config |
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.
| Protection | Effect of enabling automatic login | Practical result |
|---|---|---|
| Full-disk encryption | Weakened or blocked, depending on platform | Stolen device may expose all data |
| Login keychain or keyring | Not unlocked or unlocked with a stored secret | Extra prompts or reduced secret protection |
| Windows Hello and biometrics | Bypassed at startup | No identity check before the desktop |
| Account lockout policy | Not exercised at boot | No brute-force protection is needed by an attacker |
| Audit trail | Logons attributed to one account | Weaker accountability on shared hardware |
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 compared with related account features
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.
| Feature | What it skips | Remaining protection |
|---|---|---|
| Automatic login | The entire login screen at boot | None at startup |
| Kiosk mode | Access to the general desktop | Restricted shell, often with automatic login |
| Guest account | Personal credentials | Isolated, temporary profile |
| Fast user switching | Closing other sessions | Each switch still requires authentication |
| Disabled lock screen | Locking after idle time | Login still required at boot |
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.
| Situation | Recommendation | Reason |
|---|---|---|
| Corporate laptop | Do not enable | Theft exposes company data and credentials |
| Shared family computer | Do not enable | Each member needs a separate profile |
| Digital signage player | Enable with a dedicated account | Unattended recovery after reboots |
| Public kiosk | Enable with kiosk mode | Restricted shell limits what visitors can do |
| Desktop in a locked home office | Acceptable with care | Physical access is already controlled |
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.