Information
System Preferences controls system and user settings on a macOS Computer. System Preferences allows the user to tailor their experience on the computer as well as allowing the System Administrator to configure global security settings. Some of the settings should only be altered by the person responsible for the computer.
Rationale:
By requiring a password to unlock System-wide System Preferences the risk is mitigated of a user changing configurations that affect the entire system and requires an admin user to re-authenticate to make changes
Impact:
If Automatic login is not disabled an unauthorized user could login without supplying a user password or credential.
Solution
Perform the following to verify that an administrator password is required to access system-wide preferences:
Graphical Method:
Open System Preferences
Select Security & Privacy
Select General
Select Advanced...
Set Require an administrator password to access system-wide preferences
Terminal Method:
The authorizationdb settings cannot be written to directly, so the plist must be exported out to temporary file. Changes can be made to the temporary plist, then imported back into the authorizationdb settings.
Run the following commands to enable that an administrator password is required to access system-wide preferences:
$ sudo security authorizationdb read system.preferences > /tmp/system.preferences.plist
YES (0)
$ sudo defaults write /tmp/system.preferences.plist shared -bool false
$ sudo security authorizationdb write system.preferences < /tmp/system.preferences.plist
YES (0)