Information
Prompting for a password when waking from sleep or screensaver mode mitigates the threat of an unauthorized person gaining access to a system in the user's absence.
Solution
Perform the following to implement the prescribed state:
Run the following command in Terminal: The current user will need to log off and on for changes to take effect.
defaults write com.apple.screensaver askForPassword -int 1
The current user will need to log off and on for changes to take effect.