When the Mac is woken, it will require a password – a nice workaround to lock our Mac using a terminal command. This is useful because there is a terminal command available that when executed will put a Mac into sleep. This means that any time your Mac enters sleep mode or the screen saver begins, when you wake your Mac it will ask you for your password. Then set the time frequency to ‘immediately’.Check the option of ‘Require password immediately after sleep or screen saver begins’.There is a security feature on Macs that, if activated, requires you to input your password every time your Mac enters sleep or the screen saver begins. Since there is currently no command available that we can run in Terminal to lock a Mac, we need to configure our Mac to enable us to implement a workaround. Configure password settings on your Macġ.