Issue: All Self Service policies run as Root.
Objective: Disable User's Screen Lock
#!/bin/shCapture Active User
user=$(ls -l /dev/console | awk {' print $3 '})Navigate to User Dir
path="/Users/$user/Library/Preferences/com.apple.screensaver"Disable Screen Lock
defaults write "$path" askForPassword -int 0 defaults write "$path" idleTime -int 7200 defaults write "$path" askForPassword -bool falseUpdate local ACL
chown $user:staff $path.plistFinish
exit 0