I modified the script this way:Objective was to run it on a specific set
of machines after login without involving the users. #!/bin/sh
path="/Users/$3/Library/Preferences/com.apple.screensaver" su - $3 -c
"defaults write "$path" askForPassword -int ...