• 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
Running a tool authorized as root
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Running a tool authorized as root


  • Subject: Running a tool authorized as root
  • From: email@hidden
  • Date: Sat, 20 Aug 2005 03:02:32 +0000

I want to run a tool that needs to be run by the root user.  I can get it to work the first time, but never after that.

How I want the app to work:
Users clicks button on UI
Have the user authenticate
Run the tool
Deauthenticate

The first time works without a problem.  However everytime after that I get the error -60031.  I /do/ want the user to authenticate everytime they click the button.  What my code basically looks like is:
     AuthorizationCreate()
     AuthorizationCopyRights()
     AuthorizationExecuteWithPrivileges()
     AuthorizationFree()

Any ideas?

Thanks,
Kris
Kris


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

This email sent to email@hidden

  • Follow-Ups:
    • Re: Running a tool authorized as root
      • From: BK <email@hidden>
  • Prev by Date: [UPDATE] Lex/Yacc and Cocoa
  • Next by Date: background screen of the other application
  • Previous by thread: Re: What To Do w/ ADC Ref Library Update
  • Next by thread: Re: Running a tool authorized as root
  • Index(es):
    • Date
    • Thread