Quote:
Originally Posted by
unimachead
Thanks, xbin. The only GlobalPreferences I'm finding might possibly be an "MCX" file within the user template. Is there another place I should search?
---------- Post updated at 11:42 AM ---------- Previous update was at 11:40 AM ----------
Would the following work, Corona688?
$ADMINS ALL = NOPASSWD: LOCATE
How are you deploying this scripted solution?
Typically, you do not enter "sudo" in a script, as it will require someone enter the password of an administrator. If I'm creating a script like this, I leave off the "sudo" part and just have the basic commands in it.
If I run the script in Terminal.app, I will then use the "sudo" command to run the script, thereby granting my admin access to all the commands in the script. So, script named "defaultchanger.sh" would be run by issuing the command "sudo defaultchanger.sh"
If you are deploying the script remotely, then the deployment solution will likely have a mechanism that will allow it to be run with elevated privileges. Again. No "sudo" in the script would be required.
Good luck!