<?xml version="1.0" encoding="UTF-8"?><!-- generator="wordpress/2.0.5" -->
<rss version="2.0" 
	xmlns:content="http://purl.org/rss/1.0/modules/content/">
<channel>
	<title>Comments on: The Denoobization Script</title>
	<link>http://www.terminally-incoherent.com/blog/2007/11/15/the-denoobization-script/</link>
	<description>Utterly random, incoherent and disjointed rants and ramblings...</description>
	<pubDate>Wed, 03 Dec 2008 02:32:03 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.0.5</generator>

	<item>
		<title>by: Matt`</title>
		<link>http://www.terminally-incoherent.com/blog/2007/11/15/the-denoobization-script/#comment-7040</link>
		<pubDate>Mon, 19 Nov 2007 18:23:28 +0000</pubDate>
		<guid>http://www.terminally-incoherent.com/blog/2007/11/15/the-denoobization-script/#comment-7040</guid>
					<description>Not being a *nix user I spent a while looking the command at the top trying to figure out how it would hose everything

It just clicked - the end bit refers to the beginning, replaces letters with other letters and comes up with rm -rf /

Which I know from teh interwebs is normally not a good thing to do... :)</description>
		<content:encoded><![CDATA[<p>Not being a *nix user I spent a while looking the command at the top trying to figure out how it would hose everything</p>
<p>It just clicked - the end bit refers to the beginning, replaces letters with other letters and comes up with rm -rf /</p>
<p>Which I know from teh interwebs is normally not a good thing to do&#8230; <img src="http://www.terminally-incoherent.com/blog/wp-includes/images/smilies/icon_smile.gif" alt=")" class="wp-smiley" />
</p>
]]></content:encoded>
				</item>
	<item>
		<title>by: jambarama</title>
		<link>http://www.terminally-incoherent.com/blog/2007/11/15/the-denoobization-script/#comment-7030</link>
		<pubDate>Mon, 19 Nov 2007 00:29:21 +0000</pubDate>
		<guid>http://www.terminally-incoherent.com/blog/2007/11/15/the-denoobization-script/#comment-7030</guid>
					<description>Yeah never run that command as root - luckily when I made the above mentioned mistake, I wasn't running as root.  Unluckily it hosed my /home/* directory so badly before I could stop it, it was worth restoring.  

One time we had a box where users were allowed to create new files in any folder they wanted on the system but not given write privileges to any existing files (all the users were employees--trustworthy and all very capable, I was the only newb).  

One guy left the group, and he had been big into adding his own stuff to the box, which was fine.  But now he'd left and his crap was all over outside of /home/thisguy and we wanted to clean up after him.  We knew the system ran fine without the stuff the guy added, so our sysadmin decided to just run rm -rf / as this user.  It worked nicely, cleaned up all the stuff the user had created, left everything else intact.</description>
		<content:encoded><![CDATA[<p>Yeah never run that command as root - luckily when I made the above mentioned mistake, I wasn&#8217;t running as root.  Unluckily it hosed my /home/* directory so badly before I could stop it, it was worth restoring.  </p>
<p>One time we had a box where users were allowed to create new files in any folder they wanted on the system but not given write privileges to any existing files (all the users were employees&#8211;trustworthy and all very capable, I was the only newb).  </p>
<p>One guy left the group, and he had been big into adding his own stuff to the box, which was fine.  But now he&#8217;d left and his crap was all over outside of /home/thisguy and we wanted to clean up after him.  We knew the system ran fine without the stuff the guy added, so our sysadmin decided to just run rm -rf / as this user.  It worked nicely, cleaned up all the stuff the user had created, left everything else intact.
</p>
]]></content:encoded>
				</item>
	<item>
		<title>by: Luke Maciak</title>
		<link>http://www.terminally-incoherent.com/blog/2007/11/15/the-denoobization-script/#comment-7006</link>
		<pubDate>Fri, 16 Nov 2007 16:27:39 +0000</pubDate>
		<guid>http://www.terminally-incoherent.com/blog/2007/11/15/the-denoobization-script/#comment-7006</guid>
					<description>It seems that Sun took the "may become the default behavior" bit to heart since this is exactly what their version of rm does by default in Solaris 10. :)

Can anyone come up with a legitimate reason to do &lt;samp&gt;rm -rf /&lt;/samp&gt;? I can't think of a single instance when this would be useful. I mean from purely Unix point of view, if it's syntactically legal, you should be able to do this. But when would you actually "need" it?</description>
		<content:encoded><![CDATA[<p>It seems that Sun took the &#8220;may become the default behavior&#8221; bit to heart since this is exactly what their version of rm does by default in Solaris 10. <img src="http://www.terminally-incoherent.com/blog/wp-includes/images/smilies/icon_smile.gif" alt=")" class="wp-smiley" /> </p>
<p>Can anyone come up with a legitimate reason to do <samp>rm -rf /</samp>? I can&#8217;t think of a single instance when this would be useful. I mean from purely Unix point of view, if it&#8217;s syntactically legal, you should be able to do this. But when would you actually &#8220;need&#8221; it?
</p>
]]></content:encoded>
				</item>
	<item>
		<title>by: bojohan</title>
		<link>http://www.terminally-incoherent.com/blog/2007/11/15/the-denoobization-script/#comment-7005</link>
		<pubDate>Fri, 16 Nov 2007 11:57:16 +0000</pubDate>
		<guid>http://www.terminally-incoherent.com/blog/2007/11/15/the-denoobization-script/#comment-7005</guid>
					<description>&lt;blockquote&gt;Since there are so few (1) legitimate uses for such a command, GNU `rm' provides the `--preserve-root' option to make it so `rm' declines to operate on any directory that resolves to `/'. The default is still to allow `rm -rf /' to operate unimpeded. Another new option, `--no-preserve-root', cancels the effect of any preceding `--preserve-root' option. Note that the `--preserve-root' behavior may become the default for `rm'.
&lt;/blockquote&gt;

-- GNU coreutils documentation</description>
		<content:encoded><![CDATA[<blockquote><p>Since there are so few (1) legitimate uses for such a command, GNU `rm&#8217; provides the `&#8211;preserve-root&#8217; option to make it so `rm&#8217; declines to operate on any directory that resolves to `/&#8217;. The default is still to allow `rm -rf /&#8217; to operate unimpeded. Another new option, `&#8211;no-preserve-root&#8217;, cancels the effect of any preceding `&#8211;preserve-root&#8217; option. Note that the `&#8211;preserve-root&#8217; behavior may become the default for `rm&#8217;.
</p>
</blockquote>
<p>&#8211; GNU coreutils documentation
</p>
]]></content:encoded>
				</item>
	<item>
		<title>by: Luke Maciak</title>
		<link>http://www.terminally-incoherent.com/blog/2007/11/15/the-denoobization-script/#comment-7002</link>
		<pubDate>Thu, 15 Nov 2007 21:10:45 +0000</pubDate>
		<guid>http://www.terminally-incoherent.com/blog/2007/11/15/the-denoobization-script/#comment-7002</guid>
					<description>Oh wow! I got 7000 GET (look at the number on my comment - round 7000)! Wohoo!

Then again my comment is not very spectacular or meme worthy. Wasted get? :(</description>
		<content:encoded><![CDATA[<p>Oh wow! I got 7000 GET (look at the number on my comment - round 7000)! Wohoo!</p>
<p>Then again my comment is not very spectacular or meme worthy. Wasted get? <img src="http://www.terminally-incoherent.com/blog/wp-includes/images/smilies/icon_sad.gif" alt="(" class="wp-smiley" />
</p>
]]></content:encoded>
				</item>
	<item>
		<title>by: Luke Maciak</title>
		<link>http://www.terminally-incoherent.com/blog/2007/11/15/the-denoobization-script/#comment-7000</link>
		<pubDate>Thu, 15 Nov 2007 20:48:58 +0000</pubDate>
		<guid>http://www.terminally-incoherent.com/blog/2007/11/15/the-denoobization-script/#comment-7000</guid>
					<description>Oh, good tip. Next time I'm compiling something I'll probably stick it in /usr/local which is mostly empty for me.

Actually, most of the things I compiled from source was nice enough to let me fakeroot it and turn it into a deb package which can then be maintained by apt. As long as apt knows where it lives, I don't have to worry about it. :)</description>
		<content:encoded><![CDATA[<p>Oh, good tip. Next time I&#8217;m compiling something I&#8217;ll probably stick it in /usr/local which is mostly empty for me.</p>
<p>Actually, most of the things I compiled from source was nice enough to let me fakeroot it and turn it into a deb package which can then be maintained by apt. As long as apt knows where it lives, I don&#8217;t have to worry about it. <img src="http://www.terminally-incoherent.com/blog/wp-includes/images/smilies/icon_smile.gif" alt=")" class="wp-smiley" />
</p>
]]></content:encoded>
				</item>
	<item>
		<title>by: Craig Betts</title>
		<link>http://www.terminally-incoherent.com/blog/2007/11/15/the-denoobization-script/#comment-6999</link>
		<pubDate>Thu, 15 Nov 2007 20:37:36 +0000</pubDate>
		<guid>http://www.terminally-incoherent.com/blog/2007/11/15/the-denoobization-script/#comment-6999</guid>
					<description>/opt is "optional" software in UNIX.  Solaris uses this dir to install SUN branded software that does not come packaged with Solaris.  Examples include SunStudio, SunRay Server software.  Some other groups use this area as well, like BlastWave (/opt/csw).

I think of it as /usr/local, but for commercial software.  Anything I compile from source goes into /usr/local.  Makes it much easier when building upgrading systems.</description>
		<content:encoded><![CDATA[<p>/opt is &#8220;optional&#8221; software in UNIX.  Solaris uses this dir to install SUN branded software that does not come packaged with Solaris.  Examples include SunStudio, SunRay Server software.  Some other groups use this area as well, like BlastWave (/opt/csw).</p>
<p>I think of it as /usr/local, but for commercial software.  Anything I compile from source goes into /usr/local.  Makes it much easier when building upgrading systems.
</p>
]]></content:encoded>
				</item>
	<item>
		<title>by: Luke Maciak</title>
		<link>http://www.terminally-incoherent.com/blog/2007/11/15/the-denoobization-script/#comment-6998</link>
		<pubDate>Thu, 15 Nov 2007 20:33:59 +0000</pubDate>
		<guid>http://www.terminally-incoherent.com/blog/2007/11/15/the-denoobization-script/#comment-6998</guid>
					<description>Btw, what does solaris put in /opt? On my Ubuntu box I currently just have bunch of packages that were either compiled from source, or came as generic binaries not from a repository. Here is what I have there right now:

Dit Defender
Eclipse
Firefox
GCalDaemon
Google Desktp
Komodo Edit

In other words my /opt is for shit that is not natively installed via apt, that likes to have it's own program directory, windows style. And I actually like it this way. It keeps things clean. :)</description>
		<content:encoded><![CDATA[<p>Btw, what does solaris put in /opt? On my Ubuntu box I currently just have bunch of packages that were either compiled from source, or came as generic binaries not from a repository. Here is what I have there right now:</p>
<p>Dit Defender<br />
Eclipse<br />
Firefox<br />
GCalDaemon<br />
Google Desktp<br />
Komodo Edit</p>
<p>In other words my /opt is for shit that is not natively installed via apt, that likes to have it&#8217;s own program directory, windows style. And I actually like it this way. It keeps things clean. <img src="http://www.terminally-incoherent.com/blog/wp-includes/images/smilies/icon_smile.gif" alt=")" class="wp-smiley" />
</p>
]]></content:encoded>
				</item>
	<item>
		<title>by: Craig Betts</title>
		<link>http://www.terminally-incoherent.com/blog/2007/11/15/the-denoobization-script/#comment-6997</link>
		<pubDate>Thu, 15 Nov 2007 20:15:19 +0000</pubDate>
		<guid>http://www.terminally-incoherent.com/blog/2007/11/15/the-denoobization-script/#comment-6997</guid>
					<description>[quote post="2091"]Wait… You should still be able to chmod files back to normal as root, no? Then again, setting the right permissions for the right files might be a pain in the ass.[/quote]

Theoretically, yes.  The perms should be in the RPM database, but getting access to all the binaries and libs needed would be a pain.

I accidentally did this on Solaris in /opt once.  Fortunately, I didn't require any file access in this directory to restore the perms.  It took a long time to get all the perm information out of the package database, but I was successful in restoring it back to normal.</description>
		<content:encoded><![CDATA[<blockquote cite="http://www.terminally-incoherent.com/blog/2007/11/15/the-denoobization-script/"><p>
Wait… You should still be able to chmod files back to normal as root, no? Then again, setting the right permissions for the right files might be a pain in the ass.</p>
</blockquote>
<p>Theoretically, yes.  The perms should be in the RPM database, but getting access to all the binaries and libs needed would be a pain.</p>
<p>I accidentally did this on Solaris in /opt once.  Fortunately, I didn&#8217;t require any file access in this directory to restore the perms.  It took a long time to get all the perm information out of the package database, but I was successful in restoring it back to normal.
</p>
]]></content:encoded>
				</item>
	<item>
		<title>by: Luke Maciak</title>
		<link>http://www.terminally-incoherent.com/blog/2007/11/15/the-denoobization-script/#comment-6996</link>
		<pubDate>Thu, 15 Nov 2007 20:04:55 +0000</pubDate>
		<guid>http://www.terminally-incoherent.com/blog/2007/11/15/the-denoobization-script/#comment-6996</guid>
					<description>Wait... You should still be able to chmod files back to normal as root, no? Then again, setting the right permissions for the right files might be a pain in the ass.</description>
		<content:encoded><![CDATA[<p>Wait&#8230; You should still be able to chmod files back to normal as root, no? Then again, setting the right permissions for the right files might be a pain in the ass.
</p>
]]></content:encoded>
				</item>
</channel>
</rss>

<!-- Dynamic Page Served (once) in 0.835 seconds -->
