Re: simple root authentication for executing shell scripts
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.