How to prevent MacBook from automatically Logging out

In this article, we shall discuss “how to prevent MacBook from automatically Logging out”. MacBook is a brand of Macintosh laptop computers designed and marketed by Apple Inc. It replaced the PowerBook and iBook brands during the Mac transition to Intel processors announced in 2005. Automatic logout provides you or an administrator the ability to log out after a specified time of inactivity. Please see how to enable automatic login on Windows 10 via the Registry, and Auto Logon Error “Username and password specified is not valid”.
Follow the steps described below to disable automatic logging out of users. See this guide on how to enable or disable automatic login on macOS: Fix username greyed out for automatic login.
Prevent macOS Auto logout
The option is found in the System Preferences window as shown below.
Click on “Security & Privacy General”.
This will open up the Security and Privacy window as shown below. Click on the General Tab as shown below
Click the on the lock icon 🔒to unlock it. Enter an administrator name and password and click Advanced

Please see Best MacBook you can find in the year 2022, How to disable auto login in Windows, and how to Disable or Enable Auto log on in Windows.
Uncheck Log out after some time
Uncheck “Log out after minutes of inactivity as shown below and click Ok

Finally Click on the Lock again, to activate the lock as shown below. Please see “How to remove a Bluetooth device and connect a new Bluetooth device to Macbook“.

I hope you found this blog post on how to prevent MacBook from automatically Logging out helpful. Please let me know in the comment session if you have any questions.


Thank-you! Appreciated the info on how to make this change.
Thank you for the great comment @Herbert
This was just the advice I was looking for. Thank you!
Thank you very much @jimothy
Exactly what I was looking for and it popped up quickly on my search browser. Awesome!!
Thank you very much for the kind words
Hi Christian, I’m having the problem where my mac desktop logs out even with the measures you have described here. It happens at random so do you have any suggestions I can try? Thanks
Mac High Sierra
V 10.13.6
Processor 2×2.4GH Quad Core Intel Xeon
Mem 26GB 1066 DDR3
Nvidia Geforce GT 120 512 MB
I know its an old machine but I really don’t want the expense of getting something newer.
All the best
I am sorry that I am just seeing this due to content update. I think you know longer need help with this issue. If you do, please let me know.