Login screen

Also known as: sign-in screen

On this page 7

A login screen, also called a sign-in screen, is the part of an operating system that asks a person to identify themselves and prove that identity before a desktop session starts. In desktop operating systems, it is the gate between the shared machine and the separate user accounts stored on it: only after successful authentication does the system load a user profile, mount the home directory and run programs with that account’s permissions.

The login screen is more than a password box. It is a privileged system component that collects credentials in a protected environment, passes them to an authentication subsystem, and asks the session manager to build a new logon session with its own security token. How well that chain is isolated determines whether malware or a passer-by can capture passwords or bypass account separation.

How a login screen starts a user session

A login screen works as the front end of an authentication pipeline that ends with a running user session. The visible interface collects input, but the decisive work happens in system services that the user never sees and cannot modify without administrator rights.

On Windows, the Winlogon process owns the secure desktop, the LogonUI process draws the interface, and credential providers supply each sign-in method. Credentials go to the Local Security Authority (LSA), which validates them against the local account database or a domain controller. On macOS, the loginwindow process performs the equivalent role with Open Directory, while Linux desktops use a display manager such as GDM, SDDM or LightDM that hands credentials to PAM modules.

The following table lists the stages that follow a successful sign-in and what each stage produces.

StageWhat happensResult
Credential collectionInterface gathers password, PIN, biometric or cardRaw credential in a protected process
VerificationSecurity subsystem checks it locally or against a directoryAccept or reject decision
Token creationSystem builds an access token with user and group identifiersIdentity used for every permission check
Profile loadingUser settings, registry hive or preferences are mountedPersonal environment restored
Shell launchDesktop shell and startup programs run as the userUsable desktop session
Stages of a typical desktop sign-in

Sign-in methods offered on the login screen

Modern login screens support several authentication factors, and each method has a different security profile. A password is something the user knows, a security key or smart card is something the user has, and a fingerprint or face scan is something the user is.

A device-bound PIN, such as a Windows Hello PIN, is often misunderstood as weaker than a password. In fact, the PIN unlocks a key held in the Trusted Platform Module (TPM) on that specific device, so a stolen PIN is useless without the physical machine, and the TPM enforces anti-hammering lockout after repeated failures.

MethodFactor typeMain strengthMain weakness
PasswordKnowledgeWorks everywhere, including remote sign-inReuse, phishing and guessing
Device PINKnowledge bound to hardwareUseless away from the deviceShort PINs can be shoulder-surfed
Fingerprint or faceBiometricFast and hard to observeRequires fallback method and sensor quality
Smart card or security keyPossessionStrong resistance to phishingCard can be lost or forgotten
Picture or patternKnowledgeEasy to rememberSmudge marks reveal the pattern
Common sign-in methods compared

Login screen, lock screen and secure attention sequence

The login screen is closely related to, but not the same as, the lock screen. The login screen starts a new session, whereas the lock screen protects an existing session that keeps running in the background with open files and programs.

Some systems require a secure attention sequence, historically Ctrl+Alt+Delete on Windows, before credentials can be typed. Ordinary applications cannot intercept that key combination, so pressing it guarantees that the input reaches the genuine system login interface rather than a fake window designed to harvest passwords.

ScreenPurposeSession state
Login screenAuthenticate and start a sessionNo session yet for that user
Lock screenRe-authenticate the current userSession running and suspended from view
User switcherChoose another account during fast user switchingSeveral sessions kept in memory
Pre-boot authenticationUnlock full-disk encryptionOperating system not yet started
Related screens and what they protect

Configuring the login screen in practice

Administrators shape the login screen through local or group policies, and the right settings depend on who uses the machine. A shared office computer, a family laptop and a public kiosk need different trade-offs between convenience and disclosure.

  • Hide the last signed-in user name on shared or public machines so that an observer does not learn valid account names.
  • Disable automatic login on any device that leaves a locked room, because it hands the session to whoever powers the machine on.
  • Show a legal notice before sign-in where organizational policy requires users to acknowledge acceptable use.
  • Set account lockout thresholds that slow guessing without letting an attacker lock out every user on purpose.

The decision table below summarizes common situations and a sensible configuration for each.

SituationRecommended settingReason
Single-user laptopBiometric or device PIN with lock on lid closeFast access and strong hardware binding
Family computerSeparate standard accounts listed on screenEasy selection with enforced separation
Office domain workstationHidden user list and secure attention sequenceLimits account enumeration and spoofing
Public kioskRestricted guest or assigned-access accountNo personal credentials entered on shared hardware
Choosing login screen settings by situation

Security limits and common mistakes

A login screen protects the running operating system, not the data on the disk. Anyone with physical access can boot another system from a USB drive and read an unencrypted drive directly, so the login screen is only meaningful when combined with full-disk encryption such as BitLocker or FileVault.

Other frequent problems include accessibility tool replacement attacks, in which an attacker with offline disk access swaps an accessibility program available on the login screen for a command shell, and credential reuse, where the sign-in password matches passwords used on websites. Users also overestimate the protection of a login screen on a machine that never locks: an unlocked session bypasses the login screen entirely.

In everyday language

A login screen is the front door of a computer that several people may share. Before you see your own desktop, it asks who you are. Then it wants proof, such as a password, a PIN or your fingerprint.

Think of it as a building receptionist. The receptionist checks your badge and gives you the key to your own office only. The screen works best when the rest of the building is locked too. On a computer, that means turning on disk encryption and locking the screen when you walk away.

Seen in the real world

A small accounting firm with twelve employees shares six desktop computers between morning and afternoon shifts. Originally every machine signed in automatically to one shared account, and client spreadsheets were visible to anyone who sat down, including cleaning contractors in the evening.

The office administrator disabled automatic sign-in, created individual domain accounts, hid the last user name on the login screen and enabled fingerprint readers with a fallback PIN. Drives were encrypted with BitLocker, and screens now lock after five minutes of inactivity.

Sign-in now takes about three seconds with a fingerprint, each employee sees only their own documents and mapped folders, and an audit of the security logs shows exactly who used which machine. The firm passed its next client data-protection review without findings on workstation access.