• 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
Re: Problems running a shell script as root
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Problems running a shell script as root


  • Subject: Re: Problems running a shell script as root
  • From: Chris Hanson <email@hidden>
  • Date: Fri, 27 Jul 2007 15:38:11 -0700

On Jul 27, 2007, at 1:26 PM, deepak gopal wrote:

Does anyone know what I am doing wrong here?

I don't know what you're doing wrong, but I strongly suggest re- reading the "Performing Privileged Operations with Authorization Services" document, and paying particular attention to the flow of control between the application and a helper utility that it runs. I also recommend taking a look at the appropriate sample code.


Trying to "run a shell script as root" using AuthorizationExecuteWithPrivileges sounds like a bad idea, since a shell script cannot accept an authorization reference from the host application and verify that the host application is allowed to be asking the script to perform the requested privileged operation.

  -- Chris

_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


References: 
 >Re: Problems running a shell script as root (From: deepak gopal <email@hidden>)

  • Prev by Date: Re: Changing the app language
  • Next by Date: Custom Cell For Table
  • Previous by thread: Re: Problems running a shell script as root
  • Next by thread: Re: Problems running a shell script as root
  • Index(es):
    • Date
    • Thread