The Cybermatic Signal · Fix-it Guides · Devices · macOS
← All guides · Time to fix: 5 minutes per device · macOS
Automatic login skips the password prompt at startup and boots the Mac directly into a user account. Any business Mac left unattended — at a front desk, in a conference room, or in a bag that gets stolen — is fully accessible to whoever picks it up. Disabling the setting takes under five minutes per machine.
The fix, verified
Automatic login enabled
| Severity | high · macOS |
| Where to click | System Settings → Users & Groups → Automatic login → Off. |
| Or run | sudo defaults delete /Library/Preferences/com.apple.loginwindow autoLoginUser |
| Maps to | CIS macOS 2.6.1HIPAA 164.312(a) |
When automatic login is enabled, macOS stores a user's credentials and replays them at boot without asking for a password. The machine goes straight to the desktop. This also undermines FileVault: FileVault encrypts the disk, but its protection depends on requiring a password before the volume is unlocked. With automatic login active, the system unlocks the volume and loads the session in one step, so anyone who powers on the Mac gets in.
A realistic scenario: a laptop is left on a desk overnight or forgotten in a car. Someone picks it up, presses the power button, and lands on a logged-in desktop with access to email, files, and any saved browser passwords — no credentials required. FileVault did not help because the machine unlocked itself.
Open System Settings, go to Users & Groups, and look at the Automatic login field. If it shows a username instead of 'Off', the setting is enabled. You can also check from the command line:
If that command returns a username, automatic login is on. If it returns 'The domain/default pair does not exist', the setting is already disabled.
There are two ways to turn this off — use whichever fits your workflow.
Using System Settings: go to System Settings → Users & Groups → Automatic login and set it to Off. macOS will ask for an administrator password to confirm the change.
Using the command line (useful for scripting or remote management):
sudo defaults delete /Library/Preferences/com.apple.loginwindow autoLoginUser
Run that command in Terminal with an administrator account. It removes the stored automatic-login entry from the system preferences file. Reboot the Mac and confirm that the login screen appears before the desktop loads.
Some shared-use Macs — a reception kiosk, a shared workroom machine, or a display device — were intentionally set to auto-login for convenience. Disabling it means someone now needs to enter a password after every restart or power outage. For those machines, the right answer is usually a dedicated local account with a simple password that staff know, combined with a screen lock policy, rather than leaving automatic login enabled. The convenience trade-off is not worth the exposure.
If the Mac uses FileVault and you have been relying on automatic login, be aware that macOS actually prevents automatic login when FileVault is active on newer versions. If you see automatic login available and enabled alongside FileVault, that is a configuration inconsistency worth investigating — check that FileVault is genuinely turned on and fully encrypted under System Settings → Privacy & Security → FileVault.
For a fleet managed through an MDM such as Jamf or Apple Business Manager, deploy a configuration profile that enforces the login window settings and prevents automatic login from being re-enabled by users. In Jamf, this is under a Restrictions payload or a custom macOS Security & Privacy profile. For unmanaged machines, add a periodic check — quarterly is reasonable — by running the read command above on each device or including it in a simple audit script. Mapping this control to CIS macOS Benchmark 2.6.1 and HIPAA 164.312(a) gives you a documented reason to include it in any compliance review.
Not fully. FileVault encrypts the disk, but if automatic login is enabled, the Mac unlocks the encrypted volume and loads the user session at boot without prompting for a password. An attacker with physical access gets a live desktop, not an encrypted brick.
No. The change only affects what happens at the next startup or after a logout. Your current session and all files are unaffected.
Changing the automatic login setting requires an administrator password, so a standard user cannot re-enable it on their own. On a managed fleet, an MDM configuration profile can lock the setting so even an admin cannot change it without removing the profile.
Is this open in your environment?
Cybermatic checks for "Automatic login enabled" automatically — on every device, every day — and shows you the exact fix above next to each one it finds. The free scan takes about ten minutes and needs no credit card.
Run the free scan All guides →Part of The Cybermatic Signal. Written by the Cybermatic editorial agent from the configuration check Cybermatic runs for this setting (ID mac-autologin) and reviewed before publication. The click path, command and caution in the fix card are the vendor's documented procedure as of 2026-11-07. Found an error? Write to info@cybermatic.ai.
BriefingIssuesFlashGuidesInsurance checkDomain checkSubscribe
Cybermatic.ai by Ironhawk Group · 9330 Lyndon B Johnson Fwy, Suite 900 · Dallas, TX 75243 · Privacy · cybermatic.ai