site_archiver@lists.apple.com Delivered-To: installer-dev@lists.apple.com -pmb On Apr 18, 2006, at 5:45 PM, Peter Bierman wrote: Does 'sudo /your/AppleScript' work correctly? _______________________________________________ Do not post admin requests to the list. They will be ignored. Installer-dev mailing list (Installer-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/installer-dev/site_archiver%40lists.a... No, I want to know if you've tested your AppleScript outside of the installer by executing it as root by hand using 'sudo'. You do _not_ want to use 'sudo' in any installer script, since it can be configured to always require a password, which would cause your script to hang. The reason for testing using 'sudo' is that there are only minimal differences between running the executable yourself using 'sudo' and how the installer runs it. At 6:17 PM -0400 4/18/06, Michael Kiaer wrote: Not sure exactly what you mean by 'sudo /my/AppleScript'? The Applescript is not wrapped in a shell script. I suspect if it were, it would execute properly. I seem to recall having worked around this issue by doing that before. At 5:36 PM -0400 4/18/06, Michael Kiaer wrote: So, foremost, I am interested in the general question: do Applescripts as pre/postflight scripts in installer packages not get the proper credentials passed from the package? The postinstall executable (AppleScript, shell script, whatever) is launched via a fork/exec from a UID 0 process. I'm not sure about how an AppleScript typically executes. It's possible that AppleScripts are always run through an interpreter that strips some credentials. -pmb This email sent to site_archiver@lists.apple.com