With AuthorizationExecuteWithPrivileges deprecated in 10.7, what is an alternative to programatically running commands like launchctl, chmod, chown, etc... as root? I need to support 10.5 so SMJobBless isn't an option.
Here's the use case. I'm generating a plist for a LaunchDaemons daemon at runtime and need to copy the daemon and plist to their appropriate locations and use launchctl to unload/load the plist
Am I correct in understanding I need root to perform these actions?