<?xml version="1.0"?>
<rss version="2.0">
<channel>
  <title>Megalomaniacal - rants tag</title>
  <link>http://www.megalomaniacal.net/tags/rants/</link>
  <description>Better than the best and harder than the rest.</description>
  <language>en</language>
  <copyright>drogoh</copyright>
  <lastBuildDate>Mon, 14 Jul 2008 21:26:34 GMT</lastBuildDate>
  <generator>Pebble (http://pebble.sourceforge.net)</generator>
  <docs>http://backend.userland.com/rss</docs>
  
  
  <item>
    <title>Gaining root privileges on a FreeBSD server if root&#039;s shell is inaccessible</title>
    <link>http://www.megalomaniacal.net/2008/07/14/1216070794992.html</link>
    
      
        <description>
          &lt;p&gt;
Usually I would never see this, but my line of work requires that I suspend disbelief.&lt;br&gt;
&lt;br&gt;
Scooter user has a FreeBSD server and is &#034;doing maintenance&#034;.  Later I discover they&#039;re upgrading from 6.2 to 7.0.  Usually this isn&#039;t an issue, but they went and changed root&#039;s shell to /usr/local/bin/bash.  Now, anyone who knows anything about upgrading FreeBSD knows what happens between major versions.  Libraries change versions, applications break.  Not a pretty sight.&lt;br&gt;
&lt;br&gt;
I, being the only FreeBSD admin on the floor at the time with some seasoning, am blessed with the task of cleaning up behind this genius after a couple of other people can&#039;t get root.  Meanwhile, Scooter has the nerve to start screaming &#034;NOW NOW NOW ASAP OMG BROKED!!!!1!1!!OEN&#034;&lt;br&gt;
&lt;br&gt;
Since I have never had to deal with this before, the su(1) had the answer I required.  It was, however, not readily apparent that it was the answer.  After some twiddling, I was able to get in by using &#039;su -m&#039; and saved the day.  Now all I need to do is take the time to write up some &#034;best practices&#034; stuff to teach folks.
&lt;/p&gt;
        </description>
      
      
    
    
    
    <comments>http://www.megalomaniacal.net/2008/07/14/1216070794992.html#comments</comments>
    <guid isPermaLink="true">http://www.megalomaniacal.net/2008/07/14/1216070794992.html</guid>
    <pubDate>Mon, 14 Jul 2008 21:26:34 GMT</pubDate>
  </item>
  
  </channel>
</rss>
