• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
AuthorizationExecuteWithPrivileges error -60008
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

AuthorizationExecuteWithPrivileges error -60008


  • Subject: AuthorizationExecuteWithPrivileges error -60008
  • From: Fritz Anderson <email@hidden>
  • Date: Wed, 5 Mar 2008 16:55:04 -0600

This issue was resolved on the Apple-cdsa list, but I want to reflect the solution here to increase its visibility to searches, and in case it may be useful to other subscribers.

An application I run from my mpkg package launches a handful of tools that must execute with elevated privileges. I did this with AuthorizationExecuteWithPrivileges. The tools were not executed. AuthorizationExecuteWithPrivileges instead returned with the error code -60008.

Error -60008 is errAuthorizationInternal, "An unrecognized internal error occurred." Internal errors are never good news, and I asked Apple-cdsa about it in some despair. Google searches turned up the error only in other, often end-user, contexts.

The response was this: AuthorizationExecuteWithPrivileges requires that the environment variable TMPDIR be set to a "valid" directory, presumably meaning both existing and read/writable. Installer.app creates such a directory, and sets TMPDIR, but by the time my application runs, the directory is deleted. AuthorizationExecuteWithPrivileges can't proceed, and reports -60008 (errAuthorizationInternal).

This isn't documented anywhere I can find, and my correspondent's assertion that it is a "known issue" begs the question of who knows it. I am annoyed. Documentation bug filed.

The workaround is to create a directory for the purpose in /private/ tmp, and set TMPDIR to its path, before launching the helper application.

	— F

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Installer-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Prev by Date: Drive selection in 10.5
  • Next by Date: RE: Drive selection in 10.5
  • Previous by thread: Resource for newbies to get started using PackageMaker?
  • Next by thread: Running cmd as logged in user from admin script
  • Index(es):
    • Date
    • Thread