Log out after X minutes turning itself back on This is driving me insane. The checkbox in System Preferences &gt; Security &amp; Privacy &gt; General Tab &gt; Advanced &gt; Logout after X minutes of inactivity turns itself back on whenever I move away from the settings screen. I recorded a gif to illustrate this:

Anyone knows why this is happening? Is it some new antivirus setting? Some remote setting? Some MacOS setting? Btw I'm running latest El Capitan
EDIT
I tried using Automator to disable this again every 5 minutes. Didn't work haha.
I was also able to figure out the file where this particular pref is saved, running sudo fs_usage -w. It's here:
/Library/Preferences/.GlobalPreferences.plist
running defaults read shows me the preference is AutoLogOutDelay
If I run:
sudo defaults write /Library/Preferences/.GlobalPreferences.plist com.apple.autologout.AutoLogOutDelay 0

The computer freezes for 5 minutes. I have no idea what's going on
Edit 2
Found a thread from Apple discussions. The last message in the thread points to Profile Manager, General &gt; Login Window &gt; Options I will try to check with the network manager.
No, it's off there too. Looking further into fs_usage I noticed something strange. A process VShieldScanner.3263 is editing the preferences, namely McAffee ...
It was a bug in McAffee 

Updating to version 10.2 fixes the problem