5.7 Ensure Automatic Login Is Disabled - root account

Information

The automatic login feature saves a user's system access credentials and bypasses the login screen. Instead, the system automatically loads to the user's desktop screen.

Rationale:

Disabling automatic login decreases the likelihood of an unauthorized person gaining access to a system.

Impact:

If automatic login is not disabled an unauthorized user could gain access to the system without supplying any credentials.

Solution

Perform the following to set automatic login to off:
Graphical Method:

Open System Preferences

Select Users & Groups

Click the lock to authenticate

Select Login Options

Select Automatic login and set it to Off

Terminal Method:
Run the following command to disable automatic login:

$ sudo /usr/bin/defaults delete /Library/Preferences/com.apple.loginwindow autoLoginUser

Profile Method:

Create or edit a configuration profile with the PayLoadType of com.apple.loginwindow

Add the key com.apple.login.mcx.DisableAutoLoginClient

Set the key to <true/>

See Also

https://workbench.cisecurity.org/files/3569

Item Details

Category: IDENTIFICATION AND AUTHENTICATION

References: 800-53|IA-5, CSCv7|4.2

Plugin: Unix

Control ID: 4cf2d04ccb086ce7072e81f5ad45ea6a0fae916d898a3e816adf35fb5c9eafd3