20

It appears that since I upgraded to OS X Yosemite, and fiddled with some of the energy saver and screen saver settings, that my user is logged out due to inactivity.

Where is the setting where I can turn this off and not allow my user to be automatically logged off when inactive?

42

The option is found in the System Preferences > Security & Privacy > General > Advanced dialog.

The first option is a check box with text Log out after [NN - spin button] minutes of inactivity

The spin button enables one to set the number of minutes of inactivity.

Kudos to the user Alistair McMillan who posted the answer over in the AskDifferent stack exchange.

Read the full thread here.

| improve this answer | |
  • 3
    You can not imagine how long I have tried to find this!! Thanks a lot!! (Each time I woke up in the morning, I got the 'could not logout' message, due to iTerm etc. still being open. Very annoying hehe) – Christian Butzke Dec 2 '15 at 1:27
  • 1
    This was a lifesaver! The logout was driving me craaaaa-zzzaayyy. – ecbrodie May 14 at 17:49
4

You can prevent your Mac to automatically log out the current user after a set period of inactivity by this way -

  1. Choose Apple menu > System Preferences
  2. Click Security & Privacy
  3. Click General
  4. Click the lock icon 🔒to unlock it
  5. Enter an administrator name and password
  6. Click Advanced
  7. Uncheck “Log out after... minutes of inactivity”
  8. Click Ok

You can also check OS X Yosemite: Set your Mac to log out when not in use

| improve this answer | |
  • 1
    Nice use of step-by-step written instructions, may I suggest you add step 9 to click the <unlock-icon> to lock the user preferences? – qxotk Aug 11 '17 at 14:53
  • Excellent reference to the apple support documentation also, well done. – qxotk Aug 11 '17 at 14:55
1

Go into System Preferences> Users & Groups> Then click on the button that says Automatic Logout.

| improve this answer | |
  • 1
    There is no "Users", only "Users & Groups". No "Other Options"! – Dmitri Zaitsev Feb 17 '15 at 12:06
  • A button "Automatic Logout" does not exist there. – Elmue Jul 18 '19 at 17:06
0

If what you want is for your mac screen to stay on. The great answers above will only get you part of the way there. Under the security and privacy general tab de-select the require password. This will stop the request for a password and allow the computer to screen to stay on if all other "screen saving" is turned off.

Caution - This will forcibly remove apple pay.

| improve this answer | |
  • I think the answer could be more useful if you also state in your "Caution" that the computer will not be locked at all during the time the display remains on. – qxotk Nov 18 '19 at 18:35

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.