hi
i have a postflight script that binds to AD and some other cool stuff.. the problem is i have some commands that need to have sudo entered in front of the command- e.g. to enable the AD plugin (place the tick beside AD in Directory Service and add it to the search path.. but doesn’t do it. i have a launch agent that calls this script when the local admin logs in. even if i put the sudo command in front of the commands it doesn’t work. im guessing it misses these commands (with sudo) because it wants a password. ive looked in the /etc/sudoers file – added the local admin account, logged off and still doesn’t perform those commands in the script.
i should tell you this script and launchagent are bundled into a package. i don’t want to run this script using terminal – i know it works this way but this script/pkg is run by techs and i don’t want them to [sudo sh xxx.sh] in terminal
any advice would be great. 🙂
thanks