<?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>The DF Lab &#187; ubuntu</title>
	<atom:link href="http://blog.danfego.net/tag/ubuntu/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.danfego.net</link>
	<description>A guy like me?</description>
	<lastBuildDate>Tue, 03 Nov 2009 15:31:40 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Ubuntu, PAM, and MD5 logins</title>
		<link>http://blog.danfego.net/2009/01/ubuntu-pam-and-md5-logins/</link>
		<comments>http://blog.danfego.net/2009/01/ubuntu-pam-and-md5-logins/#comments</comments>
		<pubDate>Fri, 16 Jan 2009 16:23:22 +0000</pubDate>
		<dc:creator>Dan</dc:creator>
				<category><![CDATA[linux]]></category>
		<category><![CDATA[security]]></category>
		<category><![CDATA[ubuntu]]></category>

		<guid isPermaLink="false">http://blog.danfego.net/?p=130</guid>
		<description><![CDATA[At work today, I came upon a startling revelation when I typed in a 20+ character password on our Ubuntu server.  I typed in the password, not sure I got it quite right, and got in.  I thought I typed it in right, and obviously I did.  But I wasn&#8217;t sure, since [...]]]></description>
			<content:encoded><![CDATA[<p>At work today, I came upon a startling revelation when I typed in a 20+ character password on our Ubuntu server.  I typed in the password, not sure I got it quite right, and got in.  I thought I typed it in right, and obviously I did.  But I wasn&#8217;t sure, since our passwords are complicated.  So I exited, typed it in again, but typed it intentionally differently.  And It logged in.</p>
<p>As it turns out, after the first 8 characters, I could have put in anything at all, and the login would work.  I was shocked that such a strange security issue would come up on a mostly stock-configured Ubuntu 8.04 server.  In fact, it was <em>better</em> than stock configured, as I already had to do a bunch of configurations to secure it.</p>
<p>As it turns out, the problem lied with the way PAM was authenticating (or something).  I went and checked that my configurations were right (you should have &#8220;md5&#8243; in a &#8220;password&#8221; line where commented to do so in /etc/pam.d/common-password).  Then, after doing some more poking around online, I found an Ubuntu forum <a href="http://ubuntuforums.org/archive/index.php/t-581515.html">post</a> that mentioned that in /etc/shadow, if any given password has <strong>$1$</strong> at the beginning, it&#8217;s using MD5.  Upon looking at my shadow file, it turned out that one of my users (the one with the issue) was somehow not using MD5.  I don&#8217;t quite know how that happened, but I&#8217;m going to guess that I configured PAM for MD5 after last setting his password.  At least that&#8217;s my best guess.</p>
<p>To fix the issue, I just used passwd to change the password for the given user, and it properly took on its MD5 encryption.  I hope this proves useful to someone in the future!</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.danfego.net/2009/01/ubuntu-pam-and-md5-logins/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>
