<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: sudo NSTasks with Mac OS X&#8217;s Security framework</title>
	<atom:link href="http://www.bdunagan.com/2008/11/23/sudo-nstasks-with-mac-os-xs-security-framework/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.bdunagan.com/2008/11/23/sudo-nstasks-with-mac-os-xs-security-framework/</link>
	<description></description>
	<lastBuildDate>Mon, 06 Sep 2010 01:13:11 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
	<item>
		<title>By: bdunagan</title>
		<link>http://www.bdunagan.com/2008/11/23/sudo-nstasks-with-mac-os-xs-security-framework/comment-page-1/#comment-5783</link>
		<dc:creator>bdunagan</dc:creator>
		<pubDate>Sat, 31 Jul 2010 05:19:41 +0000</pubDate>
		<guid isPermaLink="false">http://www.bdunagan.com/?p=101#comment-5783</guid>
		<description>@Gus Not sure about your specific issue, but I know this process works with &#039;/bin/launchctl&#039;. Sorry I can&#039;t help more.</description>
		<content:encoded><![CDATA[<p>@Gus Not sure about your specific issue, but I know this process works with &#8216;/bin/launchctl&#8217;. Sorry I can&#8217;t help more.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Gus</title>
		<link>http://www.bdunagan.com/2008/11/23/sudo-nstasks-with-mac-os-xs-security-framework/comment-page-1/#comment-5779</link>
		<dc:creator>Gus</dc:creator>
		<pubDate>Fri, 30 Jul 2010 23:29:25 +0000</pubDate>
		<guid isPermaLink="false">http://www.bdunagan.com/?p=101#comment-5779</guid>
		<description>I am having a lot of trouble to execute: sudo launchctl load using this solution. 
After I call AuthorizationExecuteWithPrivileges I receive &quot;errAuthorizationSuccess&quot;
But on console I get this: 

&quot;sudo: no tty present and no askpass program specified&quot;

If I manually run it on a Terminal and run the program again everything works.</description>
		<content:encoded><![CDATA[<p>I am having a lot of trouble to execute: sudo launchctl load using this solution.<br />
After I call AuthorizationExecuteWithPrivileges I receive &#8220;errAuthorizationSuccess&#8221;<br />
But on console I get this: </p>
<p>&#8220;sudo: no tty present and no askpass program specified&#8221;</p>
<p>If I manually run it on a Terminal and run the program again everything works.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: bdunagan</title>
		<link>http://www.bdunagan.com/2008/11/23/sudo-nstasks-with-mac-os-xs-security-framework/comment-page-1/#comment-5733</link>
		<dc:creator>bdunagan</dc:creator>
		<pubDate>Tue, 27 Jul 2010 04:44:46 +0000</pubDate>
		<guid isPermaLink="false">http://www.bdunagan.com/?p=101#comment-5733</guid>
		<description>@serge I simply used logging to debug any issues that arose, but StackOverflow says gdb from Terminal can do it: http://stackoverflow.com/questions/1384284/how-does-one-automatically-attach-a-debugger-to-a-process-at-process-start-on-os.</description>
		<content:encoded><![CDATA[<p>@serge I simply used logging to debug any issues that arose, but StackOverflow says gdb from Terminal can do it: <a href="http://stackoverflow.com/questions/1384284/how-does-one-automatically-attach-a-debugger-to-a-process-at-process-start-on-os" rel="nofollow">http://stackoverflow.com/questions/1384284/how-does-one-automatically-attach-a-debugger-to-a-process-at-process-start-on-os</a>.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: serge</title>
		<link>http://www.bdunagan.com/2008/11/23/sudo-nstasks-with-mac-os-xs-security-framework/comment-page-1/#comment-5697</link>
		<dc:creator>serge</dc:creator>
		<pubDate>Thu, 22 Jul 2010 20:46:23 +0000</pubDate>
		<guid isPermaLink="false">http://www.bdunagan.com/?p=101#comment-5697</guid>
		<description>I got your project from svn, it is very helpful. however i have a question, how do you debug AuthHelperTool it is a separate target in the project. Im having a hard time debugging it.</description>
		<content:encoded><![CDATA[<p>I got your project from svn, it is very helpful. however i have a question, how do you debug AuthHelperTool it is a separate target in the project. Im having a hard time debugging it.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: bdunagan</title>
		<link>http://www.bdunagan.com/2008/11/23/sudo-nstasks-with-mac-os-xs-security-framework/comment-page-1/#comment-5273</link>
		<dc:creator>bdunagan</dc:creator>
		<pubDate>Fri, 21 May 2010 04:50:18 +0000</pubDate>
		<guid isPermaLink="false">http://www.bdunagan.com/?p=101#comment-5273</guid>
		<description>@Sharath: My understanding is that you can&#039;t simply cache the authorization between launches. The user will need to authorize any root-level tool at least every launch. Let me know if I&#039;m mistaken. For more info, I would check out Apple&#039;s Authorization Services Programming Guide.</description>
		<content:encoded><![CDATA[<p>@Sharath: My understanding is that you can&#8217;t simply cache the authorization between launches. The user will need to authorize any root-level tool at least every launch. Let me know if I&#8217;m mistaken. For more info, I would check out Apple&#8217;s Authorization Services Programming Guide.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: bdunagan</title>
		<link>http://www.bdunagan.com/2008/11/23/sudo-nstasks-with-mac-os-xs-security-framework/comment-page-1/#comment-5272</link>
		<dc:creator>bdunagan</dc:creator>
		<pubDate>Fri, 21 May 2010 04:43:44 +0000</pubDate>
		<guid isPermaLink="false">http://www.bdunagan.com/?p=101#comment-5272</guid>
		<description>@Chris: I know this reply is incredibly late, but I only recently figured out how to do what you ask. I wrote up a blog post about communicating with a privileged tool: http://www.bdunagan.com/2010/04/18/communicating-with-a-privileged-tool/.</description>
		<content:encoded><![CDATA[<p>@Chris: I know this reply is incredibly late, but I only recently figured out how to do what you ask. I wrote up a blog post about communicating with a privileged tool: <a href="http://www.bdunagan.com/2010/04/18/communicating-with-a-privileged-tool/" rel="nofollow">http://www.bdunagan.com/2010/04/18/communicating-with-a-privileged-tool/</a>.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Sharath</title>
		<link>http://www.bdunagan.com/2008/11/23/sudo-nstasks-with-mac-os-xs-security-framework/comment-page-1/#comment-5267</link>
		<dc:creator>Sharath</dc:creator>
		<pubDate>Thu, 20 May 2010 08:59:09 +0000</pubDate>
		<guid isPermaLink="false">http://www.bdunagan.com/?p=101#comment-5267</guid>
		<description>Hi,
 Your article was very useful and the example is excellent as well. Going forward with that, I would like to implement credentials caching either at install time or first run so that I don&#039;t see the authorization dialog again .. Could you give me pointers on where to look for information on that?

Thanks..</description>
		<content:encoded><![CDATA[<p>Hi,<br />
 Your article was very useful and the example is excellent as well. Going forward with that, I would like to implement credentials caching either at install time or first run so that I don&#8217;t see the authorization dialog again .. Could you give me pointers on where to look for information on that?</p>
<p>Thanks..</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Chris</title>
		<link>http://www.bdunagan.com/2008/11/23/sudo-nstasks-with-mac-os-xs-security-framework/comment-page-1/#comment-4321</link>
		<dc:creator>Chris</dc:creator>
		<pubDate>Sun, 07 Mar 2010 05:18:38 +0000</pubDate>
		<guid isPermaLink="false">http://www.bdunagan.com/?p=101#comment-4321</guid>
		<description>Brian,

Thanks, this was very helpful!

I&#039;m trying to expand on this to run tcpdump, but am running into the issue of how to stop tcpdump once it&#039;s running. If I understand correctly, the AuthHelperTool would run tcpdump via an NSTask when called with an argument &quot;start&quot; for example. A separate process of the AuthHelperTool would then use the terminate method of NSTask to stop the task, but since it&#039;s a separate process, it has no knowledge of the original object, so how would you do this?</description>
		<content:encoded><![CDATA[<p>Brian,</p>
<p>Thanks, this was very helpful!</p>
<p>I&#8217;m trying to expand on this to run tcpdump, but am running into the issue of how to stop tcpdump once it&#8217;s running. If I understand correctly, the AuthHelperTool would run tcpdump via an NSTask when called with an argument &#8220;start&#8221; for example. A separate process of the AuthHelperTool would then use the terminate method of NSTask to stop the task, but since it&#8217;s a separate process, it has no knowledge of the original object, so how would you do this?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: fill the void &#8211; System Preferences Pane Lock</title>
		<link>http://www.bdunagan.com/2008/11/23/sudo-nstasks-with-mac-os-xs-security-framework/comment-page-1/#comment-3057</link>
		<dc:creator>fill the void &#8211; System Preferences Pane Lock</dc:creator>
		<pubDate>Mon, 14 Dec 2009 01:32:44 +0000</pubDate>
		<guid isPermaLink="false">http://www.bdunagan.com/?p=101#comment-3057</guid>
		<description>[...] creates a simple prefpane with a button and the lock UI, building on two earlier posts about root-level operations and debugging prefpanes. Clicking the button creates an empty file at /var/log/test.txt, an action [...]</description>
		<content:encoded><![CDATA[<p>[...] creates a simple prefpane with a button and the lock UI, building on two earlier posts about root-level operations and debugging prefpanes. Clicking the button creates an empty file at /var/log/test.txt, an action [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Chris</title>
		<link>http://www.bdunagan.com/2008/11/23/sudo-nstasks-with-mac-os-xs-security-framework/comment-page-1/#comment-593</link>
		<dc:creator>Chris</dc:creator>
		<pubDate>Tue, 19 May 2009 19:45:26 +0000</pubDate>
		<guid isPermaLink="false">http://www.bdunagan.com/?p=101#comment-593</guid>
		<description>Brian, thank you so much for this write up - it has been incredibly helpful. 

If anyone is following the above in XCode 3 I had a problem when applying and compiling the code and I hope this helps: - when you add the security framework to your app via right clicking on frameworks &gt; Add existing frameworks &gt; ....

Make sure you add the framework after you&#039;ve created the new shell tool app as described above and that you select the new app as a target, otherwise, when you compile, the security framework will only be available to your main app rather than the bundled AuthHelpTool and on compile you&#039;ll get symbol(s) not found errors.

Thanks again Brian... from a (now) happy beginner in Cocoa</description>
		<content:encoded><![CDATA[<p>Brian, thank you so much for this write up &#8211; it has been incredibly helpful. </p>
<p>If anyone is following the above in XCode 3 I had a problem when applying and compiling the code and I hope this helps: &#8211; when you add the security framework to your app via right clicking on frameworks &gt; Add existing frameworks &gt; &#8230;.</p>
<p>Make sure you add the framework after you&#8217;ve created the new shell tool app as described above and that you select the new app as a target, otherwise, when you compile, the security framework will only be available to your main app rather than the bundled AuthHelpTool and on compile you&#8217;ll get symbol(s) not found errors.</p>
<p>Thanks again Brian&#8230; from a (now) happy beginner in Cocoa</p>
]]></content:encoded>
	</item>
</channel>
</rss>
