[Hello everyone. I've been having problems trying to get screen saver and logout settings to catch. My goal is to have screen saver and idle logout disabled. The reason for this is our student machines, if left idle while testing software (NWEA MAP browser) is open, causes the OS to freeze right when screen saver comes on. Priority is screen saver settings and logout settings is icing on the cake. I believe it is some kind of bug but to bypass this I just need to disable those settings.
I've tried different methods like sending custom config profiles using third party app (ProfileCreator) and defaults write scripts I've found online. As well as ones sent to me by Jamf support. Nothing has worked. I am curious to see what others have been using to get those settings to work on Mojave 10.14.5.
From Jamf Support:
- Script to disable screensaver for currently logged in user:
#!/bin/sh
currentUser=$(/bin/ls -l /dev/console | /usr/bin/awk '{ print $3 }')
sudo -u $currentUser defaults -currentHost write com.apple.screensaver idleTime 0
exit 0
## end script
- Policy to execute command with Files & Processes payload (just fill in the Execute Command field).
defaults write com.apple.screensaver idleTime 0