0

This question already has an answer here:

There is a setting under Security & Privacy -> Advanced, to "Log out after X minutes of inactivity". However, this is a system wide setting. I just want to have my kids account log out after a period of inactivity, but leave my account logged in. Is that possible?

marked as duplicate by Graham Miln, Allan, dwightk, fsb, IconDaemon May 12 '18 at 13:51

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

  • @GrahamMiln I don't think this is a duplicate. It's broader than the question you linked to, so people searching for this will more likely find an answer – Max Ried May 11 '18 at 12:55
  • See also Logging out one specific user after inactivity? Linking this to help tie together similar questions. – Graham Miln May 11 '18 at 16:06
0

The MacEnterprise list has discussed this topic recently, Forcing Log-Off For Idle Users.

autologout Defaults

John NcNair suggested the following autologout defaults:

defaults write /Library/Preferences/.GlobalPreferences com.apple.autologout.AutoLogOutDelay -int 900 
defaults write /Library/Preferences/.GlobalPreferences com.apple.securitypref.logoutvalue -int 900 

Limitations

Bruce Carter mentioned...

Note that nothing using Apple's internal mechanism for this will work if the user has unsaved files open. It will simply stop at the dialog box and time out.

See the related question How can I automatically log out the guest account after a period of inactivity? for other approaches and tools.

Not the answer you're looking for? Browse other questions tagged .