Original article address: http://www.xiaobaiblog.com/macapple screen lock .html
If you want to keep your computer logged on when you leave, but want to prevent others from using it, you can lock the screen. After you return, you only need to enter the logon name and password to continue working.
To unlock a computer, you must set it to require verification:
1. Select the Apple menu> "system preference settings", click "security", and then click "General ".
2. Select "Require a Password when waking up your computer from sleep or screen saver ".
Lock screen operation:
Then Control + Shift + eject (the disk return key at the top right corner)
People with administrator accounts can use their names and passwords to unlock the screen.
TIPS:
Locking the screen does not prevent other users from logging on to their own account after shutting down and restarting the computer. If you think this may happen, You must store your work before leaving your computer.
To lock the screen and enable quick User Switching, select "Logon window" from the menu with your user name ". Your applicationProgramIt will remain open and will not be disturbed, but the computer will be locked.