If you work in an office or other place where strangers can access your computer, it is useful not to forget about locking your computer. This is a simple but reliable way to protect your data from falling into the wrong hands. Moving away from the computer, many often turn it off or send it to sleep, instead of just locking it. In the long term, such handling can harm hard and SSD disks, for which every full sleep is a burden. We’ll show you how to quickly lock down your macOS computer without taking it to sleep.
The fastest way to lock the screen is a quick key combination. But in order not only to turn off the display, but to completely lock the computer, you must first change the standard system settings.
To do this, you must:
Go to System Preferences> Security and Safety> General.
Check the box next to “Request password”. In the drop-down menu, select “immediately” or another interval of your choice.
Lock screen shortcut Ctrl + Shift + Eject or Ctrl + Shift + Power.
This key combination locks the computer screen, but does not send it to sleep. This means that all background tasks continue to work. If you need to put the computer into sleep mode, then you need to use the keyboard shortcut Command + Option+ Eject or Command + Option + Power.
If you have a new MacBook Pro with Touch Bar
One of the features of the new MacBook Pro with Touch Bar is that it lacks a Power button, so it’s impossible to use the classic keyboard shortcut to lock the display. Touch Bar will come to the rescue, for which there is a special lock button. You can find it here:
System Preferences> Keyboard> Touch Bar Setup
The macOS interface allows you to adjust the display angles for quick action. One of these actions can be putting the monitor in sleep mode, which will automatically lead to a computer lock.
You can configure this as follows:
System Preferences> Desktop and Screen Saver> Active Angles.
Indicate the desired angle and select "Put the monitor into sleep mode" in the drop-down menu.
Now, when you hold the mouse cursor in the selected corner, the computer will automatically turn off the display and lock.
There are many third-party programs and utilities that allow you to place the computer’s lock button on the top bar in macOS. For example, Parallels Toolbox, where in the drop-down menu there is an item to quickly lock the computer.
Using Find Mac to find your computer
If Find Mac is set up before your Mac is lost or stolen, you can use it to find your computer on a map or play a sound to find it faster. In addition, it helps to remotely lock your Mac or erase data on it. To use Find My Mac, log in to iCloud.com on another computer or download the free Find My iPhone app for iPhone, iPad, and iPod touch.
Search for a Mac on a map
Open Find My iPhone and select your Mac from the Devices menu to view its location on the map.
Using the Find Mac feature, you can remotely lock your Mac computer with a password. In addition, a custom message can be displayed on its display.
Play a sound
If your Mac is nearby, you can play a sound on it to find it by sound.
Erasing data on a Mac
Using the Find Mac feature, you can remotely erase and delete all personal data from your Mac.
Action if your Mac is turned off or not connected to the Internet
If your Mac is turned off or unplugged, you can still use the Find Mac feature to request a notification when it is detected, or remotely lock your Mac or erase data on it. When your Mac is online again, the steps will take effect. Removing a disconnected Mac from Find My Mac will cancel the request.
Unlock Mac Methods
Once your Mac is found, you can unlock it by entering a password. Please note that you must enter the password that was created when the computer was locked using the Find Mac service, and not the device password.
To find out the password to unlock your Mac, follow these steps:
- Log in to icloud.com/find on your Mac or PC.
- Select your Mac from the Devices menu.
- Select Unlock. After verifying your identity, you’ll see a password to unlock your Mac.
The password will be displayed only for a certain time. If you have forgotten your password or you are unable to verify your identity, take your Mac to an Apple Authorized Service Center with confirmation of purchase.
If you cannot find your Mac
Find Mac is the only Apple service that helps you track or locate a lost Mac. If the “Find Mac” function was not configured or you cannot find it before the Mac was lost, the following actions can help protect your data:
- Change your Apple ID password to prevent others from accessing iCloud data or using other services (such as iMessage or iTunes) on your Mac.
- Change passwords for other accounts used on your Mac, including email, banking sites, and social networking sites such as Facebook or Twitter.
- Report loss or theft of your Mac to your local law enforcement agency. They may request the serial number of the computer. You can find this information on the original packaging or receipt received when you purchased your Mac.
Information about products not manufactured by Apple or independent websites not controlled and tested by Apple is not advisory or advertised by the company. Apple is not responsible for the selection, functionality, or use of third-party websites or products. Apple is also not responsible for the accuracy or reliability of data posted on third-party websites. Remember that using any information or products posted on the Internet is risky. Contact your supplier for more information. Other company or product names may be trademarks of their respective owners.
Open hosts file with Finder
The method is a bit simpler, but may cause difficulties in some versions, for example, getting rid of the .txt extension after editing or incorrect encoding. But it is and it is worth considering, but I highly recommend using editing through the terminal for this purpose.
Open Finder, in the upper menu "Transition" -> "Transition to folder"
Enter the path: / private / etc / hosts As a result, the Finder’s window will open in the folder in which the desired file is located. It will already be highlighted. Just right-click on it and open it using your favorite text editor (standard Textedit).
Open hosts file using a text editor:
We edit the file as a regular text document. The file itself is protected from editing. However, if you try to make changes, you will be prompted to create a copy of it - just do it. Make the necessary changes to the copy of the file and save it, for example, on the desktop as a file called hosts. Delete the .txt permission of the saved file after that.
Then move the copy to the source folder. You just need to replace the old file hosts to the newly created one by simply dragging it from the desktop to the folder where the original file is located. In the pop-up window, confirm the action by pressing the button "Replace".
After that, you should reset the DNS cache through the terminal and restart the browsers. How to do this was described in the article a little higher.
That's all. I tried to paint the process as detailed and clear as possible. I hope that after reading this instruction you will no longer have any questions about how to block unwanted, malicious sites and resources. If you have any questions about blocking using parental control or using third-party extensions, write about this in the comments and we will try very hard to make detailed instructions on them ...
How to block iMac
Sometimes when working with iMac it may be necessary to log out of your account to protect your computer with a password without resorting to shutdown or sleep mode. On Mac OS, by default there are a large number of ways to block iMac, but not all of them are available out of the box. However, in addition to standard tools, OS X can offer a number of third-party system locking options, which we will discuss in this article.
Of course, in the Mac OS environment there is no such question that could not be solved by installing a third-party application from the AppStore or the Internet. But before resorting to this loophole, you should familiarize yourself with the iMac blocking methods that can be implemented using standard tools.
First, you need to activate the password request when you turn on the screen or wake up the computer. To do this, open the “Protection and Security” item of the system settings, where in the “General” tab put a checkmark in front of the “Request Password” item and select the value “immediately”.
After that, the system will require a password when the screen is turned on. You can lock the screen by pressing Control + Shift + Eject (eject button). In addition, to lock, you can exit the account by pressing Shift + Command + Option + Q.
In addition, to quickly lock the iMac, you can move the screensaver launch icon to the Dock. To gain access to the screensaver folder, you should quickly navigate through the directory. To do this, go to Finder, press Shift + Command + G and enter the address
then press the “Go” button. The screensaver file itself is called ScreenSaverEngine.app, it should be dragged to the Dock, after which the splash screen with subsequent iMac lock can be turned on by clicking on the screensaver icon.
The simplest (but less reliable) way is to block the iMac using active angles. Active angle settings are located in the system settings item “Mission Control” - “Active angles”. Here you can enable the screen lock when you hover over the selected angle. However, this method is not very convenient when using two monitors, because instead of the usual movement to the corner, the cursor can go to another screen. In addition, the active angle will be relevant for the monitor on the screen of which the setting took place.
You can configure iMac lock using the Keychain utility. The keychain is designed to store data about passwords created in the system, and allows you to access them if necessary. In addition, the utility allows you to configure the iMac lock. The program is located in the “utilities” folder, after starting, click on its name in the top menu and select the “settings” item, then activate the function “Show the keychain status in the menu bar”. Now in the top menu there will be an icon with a lock responsible for the operation of the keychain. By clicking on the lock, you can lock the iMac by selecting “Close Screen”.
To configure a key combination for locking, go to the “Keyboard” item of System Preferences and select the “Keyboard Shortcut” section. Next, select “Keyboard shortcuts for programs” and create a new combination by clicking the + button at the bottom. Under “Program”, leave “All Programs”, enter “Close Screen” in the line “Menu Name”, and set the key combination to Command + ‘.
This reduction will not work on its own; to activate it, you will need to move the focus to the menu bar. To do this, select the option “Move focus to the menu bar” in the “Keyboard” tab and configure the combination Command + for it. After that, it will be possible to block the iMac by holding down the Command key and pressing and ‘(Russian letters E and E) in sequence.
For the changes to the keychain combinations to take effect, you must restart the system user interface. To do this, execute the “killall SystemUIServer” command in the terminal.
In addition, using the terminal, you can create a small script that locks the screen. The script is as follows:
The specified command must be entered in the terminal on one line.
After that, the lock.command file will appear in the home directory, the launch of which will block the iMac.
In addition to the terminal, you can use the Automator program located in the Utilities folder. The program is preinstalled on all Mac computers and allows you to create a script to perform some action, in this case it is iMac lock.
First, create a new document by selecting the “Service” type. At the top of the new document will be two settings that are responsible for receiving data. In these settings you should set “” and “in any program”.
After that, select “Run shell script” from the left menu and drag it to the right window, after which the settings for the script itself will open. In the settings you need to set the following parameters:
After that, you should save the service by choosing a convenient name.
Next, you will need to create a keyboard shortcut to run the created script and lock iMac. To do this, you will again need the “Keyboard Shortcuts” keyboard settings.
In the “Services” section, select the previously created service, and then add a convenient key combination to it (for example, Control + Command + L). It is important to check if the selected combination is busy with any program. After that, iMac can be locked if necessary by pressing the specified keys.
Which of the above methods to implement in their system, everyone decides for himself. Security of the system at the household level is that mundane facet that in many cases is able to ensure the safety of data, so you should not neglect locking the system in your absence, especially when other people can access it.
If you consider the above precautions insufficient, the FileVault function, designed to encrypt the drive’s file system, will help protect the data, but in this case, you will have to restart the OS to block it with all the ensuing consequences.
Sometimes after blocking (for example, when you exit sleep mode), the iMac starts to slow down. In this case, we recommend rebooting the device. But, if the situation repeats periodically, most likely, the system does not have enough resources - an iMac upgrade, its diagnostics or repair may be required.
For any questions, our specialists are always ready to advise you by phone, email or online chat on the pages of our website.
We are always happy to welcome you!