<?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>fill the void</description>
	<lastBuildDate>Mon, 30 Jan 2012 09:42:44 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.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-15649</link>
		<dc:creator>bdunagan</dc:creator>
		<pubDate>Mon, 24 Oct 2011 08:43:38 +0000</pubDate>
		<guid isPermaLink="false">http://www.bdunagan.com/?p=101#comment-15649</guid>
		<description>@James You can use the System Preferences-style unlock image to avoid multiple password prompts: http://www.bdunagan.com/2009/12/13/system-preferences-pane-lock/.</description>
		<content:encoded><![CDATA[<p>@James You can use the System Preferences-style unlock image to avoid multiple password prompts: <a href="http://www.bdunagan.com/2009/12/13/system-preferences-pane-lock/" rel="nofollow">http://www.bdunagan.com/2009/12/13/system-preferences-pane-lock/</a>.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: James</title>
		<link>http://www.bdunagan.com/2008/11/23/sudo-nstasks-with-mac-os-xs-security-framework/comment-page-1/#comment-15617</link>
		<dc:creator>James</dc:creator>
		<pubDate>Mon, 24 Oct 2011 02:05:31 +0000</pubDate>
		<guid isPermaLink="false">http://www.bdunagan.com/?p=101#comment-15617</guid>
		<description>Thanks for your response Brian. I&#039;ve implemented that as you suggested.
However, I have a small issue that is also present with your BDAuthorize program too:
Clicking a button brings up the password prompt, but you are still able to click the button to bring up multiple password prompts. Do you know of any way around this? I&#039;d like to avoid multiple password prompts if possible!</description>
		<content:encoded><![CDATA[<p>Thanks for your response Brian. I&#8217;ve implemented that as you suggested.<br />
However, I have a small issue that is also present with your BDAuthorize program too:<br />
Clicking a button brings up the password prompt, but you are still able to click the button to bring up multiple password prompts. Do you know of any way around this? I&#8217;d like to avoid multiple password prompts if possible!</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-15385</link>
		<dc:creator>bdunagan</dc:creator>
		<pubDate>Thu, 20 Oct 2011 16:25:38 +0000</pubDate>
		<guid isPermaLink="false">http://www.bdunagan.com/?p=101#comment-15385</guid>
		<description>@James &lt;tt&gt;[NSTask launchedTaskWithLaunchPath:arguments:&lt;/tt&gt; returns the &lt;tt&gt;NSTask&lt;/tt&gt; object, and you can check its termination status with &lt;tt&gt;[NSTask terminationStatus&lt;/tt&gt;. However, the task doesn&#039;t seem to terminate if you click &quot;Cancel&quot;. I&#039;d just keep checking for the dylib&#039;s existence and not let the app continue without it.</description>
		<content:encoded><![CDATA[<p>@James <tt>[NSTask launchedTaskWithLaunchPath:arguments:</tt> returns the <tt>NSTask</tt> object, and you can check its termination status with <tt>[NSTask terminationStatus</tt>. However, the task doesn&#8217;t seem to terminate if you click &#8220;Cancel&#8221;. I&#8217;d just keep checking for the dylib&#8217;s existence and not let the app continue without it.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: James</title>
		<link>http://www.bdunagan.com/2008/11/23/sudo-nstasks-with-mac-os-xs-security-framework/comment-page-1/#comment-15347</link>
		<dc:creator>James</dc:creator>
		<pubDate>Thu, 20 Oct 2011 07:45:26 +0000</pubDate>
		<guid isPermaLink="false">http://www.bdunagan.com/?p=101#comment-15347</guid>
		<description>Hi Brian,
This is fantastic code. Thank you very much for the excellent tutorial.

My application relies on a certain dylib being in /usr/lib. When the application loads, the helperTool performs the sudo cp if the file does not exist. However, the user can still click cancel and the program continues as normal (which will lead to crashes). I would therefore like to make the application quit if the user selects &#039;cancel&#039; at the authorization password screen.

Do you have any ideas as how to do this?</description>
		<content:encoded><![CDATA[<p>Hi Brian,<br />
This is fantastic code. Thank you very much for the excellent tutorial.</p>
<p>My application relies on a certain dylib being in /usr/lib. When the application loads, the helperTool performs the sudo cp if the file does not exist. However, the user can still click cancel and the program continues as normal (which will lead to crashes). I would therefore like to make the application quit if the user selects &#8216;cancel&#8217; at the authorization password screen.</p>
<p>Do you have any ideas as how to do this?</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-8812</link>
		<dc:creator>bdunagan</dc:creator>
		<pubDate>Sun, 06 Feb 2011 10:28:27 +0000</pubDate>
		<guid isPermaLink="false">http://www.bdunagan.com/?p=101#comment-8812</guid>
		<description>@John Ah, good point. :)</description>
		<content:encoded><![CDATA[<p>@John Ah, good point. <img src='http://www.bdunagan.com/blog/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: John</title>
		<link>http://www.bdunagan.com/2008/11/23/sudo-nstasks-with-mac-os-xs-security-framework/comment-page-1/#comment-8811</link>
		<dc:creator>John</dc:creator>
		<pubDate>Sun, 06 Feb 2011 10:14:53 +0000</pubDate>
		<guid isPermaLink="false">http://www.bdunagan.com/?p=101#comment-8811</guid>
		<description>@Gus or anyone else with this issue: drop the &#039;sudo&#039; from the command line you want to execute. It&#039;s redundant as your tool already has super-user privileges.</description>
		<content:encoded><![CDATA[<p>@Gus or anyone else with this issue: drop the &#8216;sudo&#8217; from the command line you want to execute. It&#8217;s redundant as your tool already has super-user privileges.</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-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>
</channel>
</rss>

