• 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: Stderr from AuthorizationExecuteWithPrivileges
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Stderr from AuthorizationExecuteWithPrivileges


  • Subject: Re: Stderr from AuthorizationExecuteWithPrivileges
  • From: Eric Peyton <email@hidden>
  • Date: Tue, 12 Jun 2001 09:00:25 -0500

On Tuesday, June 12, 2001, at 06:50 AM, Sven A. Schmidt wrote:

In my project, I use the Authorization framework to access a cli tool with root privileges. Reading from stdout and writing to stdin works fine via the (FILE **)communicationsPipe parameter in AuthorizationExecuteWithPrivileges(...). But the cli tool (crontab) also returns stuff via stderr which I'd need to get a hold of.
Is there a way to get a handle to stderr?

Nope.

What about the return value?

Nope. I suggest filing an enhancement request against the Security framework/Authorization API's.

Or, even better, is there a way to promote an NSTask to root privileges?

Nope. If you want to do this you will need to make your application setuid root, and then your users a) probably wouldn't be able to easily install it or b) might consider your application a security risk.

Eric

Is there any special reason for the double star in (FILE **)communicationsPipe? Is it an "implicit" array with stderr hiding in a higher offset?

TIA,
Sven
_______________________________________________
cocoa-dev mailing list
email@hidden
http://www.lists.apple.com/mailman/listinfo/cocoa-dev


  • Follow-Ups:
    • Re: Stderr from AuthorizationExecuteWithPrivileges
      • From: "Sven A. Schmidt" <email@hidden>
References: 
 >Stderr from AuthorizationExecuteWithPrivileges (From: "Sven A. Schmidt" <email@hidden>)

  • Prev by Date: Re: Detecting Keydowns
  • Next by Date: Re: Stderr from AuthorizationExecuteWithPrivileges
  • Previous by thread: Stderr from AuthorizationExecuteWithPrivileges
  • Next by thread: Re: Stderr from AuthorizationExecuteWithPrivileges
  • Index(es):
    • Date
    • Thread