<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	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/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Mostly Technical &#187; osx</title>
	<atom:link href="http://www.rosssimpson.com/blog/tag/osx/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.rosssimpson.com/blog</link>
	<description>Development, Technical bits, Other.</description>
	<lastBuildDate>Wed, 11 Feb 2009 23:40:33 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=abc</generator>
		<item>
		<title>Breaking teh sudoers file on OS X</title>
		<link>http://www.rosssimpson.com/blog/2008/04/23/breaking-teh-sudoers-file-on-os-x/</link>
		<comments>http://www.rosssimpson.com/blog/2008/04/23/breaking-teh-sudoers-file-on-os-x/#comments</comments>
		<pubDate>Wed, 23 Apr 2008 19:34:47 +0000</pubDate>
		<dc:creator>simpsora</dc:creator>
				<category><![CDATA[dev]]></category>
		<category><![CDATA[mac]]></category>
		<category><![CDATA[os x]]></category>
		<category><![CDATA[osx]]></category>
		<category><![CDATA[permissions]]></category>
		<category><![CDATA[sudo]]></category>
		<category><![CDATA[sudoers]]></category>

		<guid isPermaLink="false">http://www.rosssimpson.com/blog/2008/04/23/breaking-teh-sudoers-file-on-os-x/</guid>
		<description><![CDATA[Not having anything better to do, I horked my sudoers file while modifying an entry, thereby preventing myself from sudoing at all (and subsequently fixing it). Weak. Turns out there&#8217;s a pretty easy fix for this using the Finder, so long as your account has administrator privileges: Steps: In the Finder, go to /etc (or [...]]]></description>
			<content:encoded><![CDATA[<p>Not having anything better to do, I horked my <a href="http://xkcd.com/149/" title="xkcd, yay!">sudo</a>ers file while modifying an entry, thereby preventing myself from sudoing at all (and subsequently fixing it).  Weak.</p>
<p>Turns out there&#8217;s a pretty easy fix for this using the Finder, so long as your account has administrator privileges:</p>
<p>Steps:</p>
<ol>
<li>In the Finder, go to <font color="#008000">/etc</font> (or do &lt;cmd&gt;-&lt;shift&gt;-g and enter <font color="#008000">/etc</font>, if you don&#8217;t see it in the Finder)</li>
<li>Get Info on <font color="#008000">sudoers</font></li>
<li>In the Info window&#8217;s Sharing &amp; Permissions section, add an entry for your local user with read and write access</li>
<li>With a text editor, edit <font color="#008000">/etc/sudoers</font> and fix the problem.</li>
<li>Fix the permissions on <font color="#008000">/etc/sudoers</font> back to 0440.</li>
<li>Enjoy your newly-regained sudo power!</li>
</ol>
<p>Of course, this can be used to overcome other permissions problems too.</p>
<p>If only visudo had a validator, along with a syntax checker&#8230;</p>
]]></content:encoded>
			<wfw:commentRss>http://www.rosssimpson.com/blog/2008/04/23/breaking-teh-sudoers-file-on-os-x/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>
