A couple months ago when speaking to an Apple advisor about an unrelated issue, they told me the auto-shutdown was a "security feature". I think I may remember something about it only happening when Filevault is enabled. I know it is intended behavior as per Apple, but as I'm sure we all know, they do not always make the best decisions. If anyone has a solution to disable it, please let me know.
This seems to have been introduced in OS X Mavericks and has continued through at least OS X El Capitan—and most likely MacOS Sierra. If a Mac is started, and there is no login within a couple minutes, it will shut down after 5 minutes.
This is really bad from a remote perspective. Let's say I reboot the machine using ssh—if I don't reconnect and log in within this short timeframe, the computer will shut down, and then I have no way to connect to it. The only way to start the machine at that point is to have someone at the physical location. I've completely lost remote access to my machine for weeks because of this. This is not something that should happen without an option to disable it.
My only known workaround is to log in before it shuts down and then keep that user logged in. Unfortunately, this opportunity may be lost if restarting and connecting remotely with slow internet speeds. This functionality makes it so I cannot depend on an ssh connection to my machine.
I have tested this again on all three of my Machines. 2 are personal and one is for work which has never had any account transfers or even so much as a remote connection to any of my other machines. It is consistently reproducible on these three entirely different machines and OS versions. They each have shut down from the log in screen exactly 5 minutes after boot. (Again, only after no activity or log-in). That is, completely shut down—not go into sleep mode.
This is consistently reproducible on all three of the Macs in my possession:
- Mac Pro (Late 2013) - 10.11.6 El Capitan
- MacBook Pro (17-inch, Early 2011) - 10.10.5 Yosemite
- MacBook Pro (Retina, 15-inch, Late 2013) - 10.9.5 Mavericks
There are no log messages for the time the auto shut down happens, but here are the times of restart, reboot and the corresponding logs from one of the machines:
- Reboot initiated at 9:02:30 AM
- Mac had rebooted to login screen at 9:03
- Auto shutdown at 9:08 (5 minutes after log in screen visible)
- Mac was manually started again at 9:10:41AM
Logs during that time:
2/27/17 9:02:31.291 AM shutdown: reboot by [username]: 2/27/17 9:02:31.000 AM kernel: Kext loading now disabled. 2/27/17 9:02:31.000 AM kernel: Kext unloading now disabled. 2/27/17 9:02:31.000 AM kernel: Kext autounloading now disabled. 2/27/17 9:02:31.000 AM kernel: Kernel requests now disabled. 2/27/17 9:02:31.291 AM shutdown: SHUTDOWN_TIME: 1488204151 290568 2/27/17 9:02:31.291 AM com.apple.xpc.launchd: (com.apple.xpc.launchd.domain.system) System shutdown initiated by: shutdown.1528<-sessionlogoutd.1527<-launchd.1 2/27/17 9:02:31.000 AM kernel: Process launchd  disabling system-wide I/O Throttling 2/27/17 9:02:31.000 AM kernel: Process launchd  disabling system-wide CPU Throttling 2/27/17 9:10:41.000 AM bootlog: BOOT_TIME 1488204641 0
Is there a way to prevent a Mac from automatically shutting down at the login screen after 5 minutes?