• 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: simple root authentication for executing shell scripts
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: simple root authentication for executing shell scripts


  • Subject: Re: simple root authentication for executing shell scripts
  • From: Chris Hanson <email@hidden>
  • Date: Tue, 7 Oct 2003 10:22:31 -0500

On Monday, October 6, 2003, at 01:38 PM, Huyler, Christopher M wrote:
Can someone point me to some simple code that will accomplish this? I
looked at the MoreSecurity sample code and that seems like a lot of code
to perform such a simple task.

You need to create a small "helper tool" that can make itself setuid root using Authorization Services, and that can perform other tasks as root when passed an appropriate authorization and command via stdin.

Apple's AuthSample and MoreAuthSample code samples will show you how to do this and explain what they're doing and why in explicit detail. It may look like a lot of code, but it's really not, and it's all there for a very good reason.

-- Chris

--
Chris Hanson, bDistributed.com, Inc. | Email: email@hidden
Custom Mac OS X Development | Phone: +1-847-372-3955
http://bdistributed.com/ | Fax: +1-847-589-3738
http://bdistributed.com/Articles/ | Personal Email: email@hidden
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.

References: 
 >simple root authentication for executing shell scripts (From: "Huyler, Christopher M" <email@hidden>)

  • Prev by Date: Re: NSTask
  • Next by Date: Re: launching 2 same applications
  • Previous by thread: Re: simple root authentication for executing shell scripts
  • Next by thread: RE: simple root authentication for executing shell scripts
  • Index(es):
    • Date
    • Thread