<?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>beer planet &#187; passwd</title>
	<atom:link href="http://beerpla.net/tag/passwd/feed/" rel="self" type="application/rss+xml" />
	<link>http://beerpla.net</link>
	<description>where things have nothing to do with beer - tutorials, tips, how-tos, thoughts, hacks, and other techy nonsense</description>
	<lastBuildDate>Sun, 08 Aug 2010 23:59:10 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
	<atom:link rel='hub' href='http://beerpla.net/?pushpress=hub'/>
		<item>
		<title>Do NOT Use This Perl Module: Passwd::Unix</title>
		<link>http://beerpla.net/2008/04/22/do-not-use-this-perl-module-passwdunix/</link>
		<comments>http://beerpla.net/2008/04/22/do-not-use-this-perl-module-passwdunix/#comments</comments>
		<pubDate>Wed, 23 Apr 2008 03:05:29 +0000</pubDate>
		<dc:creator>Artem Russakovskii</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[module]]></category>
		<category><![CDATA[passwd]]></category>
		<category><![CDATA[Perl]]></category>
		<category><![CDATA[shadow]]></category>
		<category><![CDATA[unix]]></category>
		<guid isPermaLink="false">http://beerpla.net/2008/04/22/do-not-use-this-perl-module-passwdunix/</guid>
		<description><![CDATA[<p><strong>Update:</strong> The author of the module contacted me the same day and promised to fix it in the next version. Version 0.40 was indeed on cpan as promised, but I haven&#039;t tested it yet.</p>
<p><a href="http://search.cpan.org/~strzelec/Passwd-Unix-0.33/Unix.pm">Passwd::Unix</a> will corrupt your /etc/shadow file and rearrange login names and their corresponding password hashes.</p>
<p>The current version of Passwd::Unix corrupted my /etc/shadow upon only<br />
calling the passwd() function. Immediately users started to report not<br />
being able to login.</p>
<p>After examining the situation, I found that Passwd::Unix rearranges all<br />
users in /etc/shadow in some way, but it only does it to the<br />...<div class=clear></div> <a href="http://beerpla.net/2008/04/22/do-not-use-this-perl-module-passwdunix/" class="read_more"><div class=excerpt-end>Read the rest of this article &#187;</div></a></p>]]></description>
			<content:encoded><![CDATA[<p><strong>Update:</strong> The author of the module contacted me the same day and promised to fix it in the next version. Version 0.40 was indeed on cpan as promised, but I haven&#039;t tested it yet.</p>
<p><a href="http://search.cpan.org/~strzelec/Passwd-Unix-0.33/Unix.pm">Passwd::Unix</a> will corrupt your /etc/shadow file and rearrange login names and their corresponding password hashes.</p>
<p>The current version of Passwd::Unix corrupted my /etc/shadow upon only<br />
calling the passwd() function. Immediately users started to report not<br />
being able to login.</p>
<p>After examining the situation, I found that Passwd::Unix rearranges all<br />
users in /etc/shadow in some way, but it only does it to the<br />
usernames, and not the password hashes. Thus, you will get corrupted accounts. Moreover,<br />
users are now able to login to one OTHER account, not their own,<br />
depending on how the usernames got shuffled.</p>
<p>Thankfully, I had a recent backup but I definitely don’t want anyone<br />
else to suffer.</p>
<p>I’m using perl 5.10, SUSE 10.3. If it’s incompatible with SUSE, it needs<br />
to say so and exit.</p>
<p>I&#039;ve filed the bug here: <a title="http://rt.cpan.org/Public/Bug/Display.html?id=35323" href="http://rt.cpan.org/Public/Bug/Display.html?id=35323">http://rt.cpan.org/Public/Bug/Display.html?id=35323</a>.</p>
<p>You have been warned.</p>
<div class="shr-bookmarks shr-bookmarks-expand">
<ul class="socials">
		<li class="shr-twitter">
			<a href="http://twitter.com/home?status=Do+NOT+Use+This+Perl+Module%3A+Passwd%3A%3AUnix+-+http://bit.ly/cNzTKm&amp;source=shareaholic" rel="nofollow" class="external" title="Tweet This!">Tweet This!</a>
		</li>
		<li class="shr-facebook">
			<a href="http://www.facebook.com/share.php?v=4&amp;src=bm&amp;u=http://beerpla.net/2008/04/22/do-not-use-this-perl-module-passwdunix/&amp;t=Do+NOT+Use+This+Perl+Module%3A+Passwd%3A%3AUnix" rel="nofollow" class="external" title="Share this on Facebook">Share this on Facebook</a>
		</li>
		<li class="shr-googlebuzz">
			<a href="http://www.google.com/buzz/post?url=http://beerpla.net/2008/04/22/do-not-use-this-perl-module-passwdunix/&amp;imageurl=" rel="nofollow" class="external" title="Post on Google Buzz">Post on Google Buzz</a>
		</li>
		<li class="shr-hackernews">
			<a href="http://news.ycombinator.com/submitlink?u=http://beerpla.net/2008/04/22/do-not-use-this-perl-module-passwdunix/&amp;t=Do+NOT+Use+This+Perl+Module%3A+Passwd%3A%3AUnix" rel="nofollow" class="external" title="Submit this to Hacker News">Submit this to Hacker News</a>
		</li>
		<li class="shr-reddit">
			<a href="http://reddit.com/submit?url=http://beerpla.net/2008/04/22/do-not-use-this-perl-module-passwdunix/&amp;title=Do+NOT+Use+This+Perl+Module%3A+Passwd%3A%3AUnix" rel="nofollow" class="external" title="Share this on Reddit">Share this on Reddit</a>
		</li>
		<li class="shr-digg">
			<a href="http://digg.com/submit?phase=2&amp;url=http://beerpla.net/2008/04/22/do-not-use-this-perl-module-passwdunix/&amp;title=Do+NOT+Use+This+Perl+Module%3A+Passwd%3A%3AUnix" rel="nofollow" class="external" title="Digg this!">Digg this!</a>
		</li>
		<li class="shr-delicious">
			<a href="http://delicious.com/post?url=http://beerpla.net/2008/04/22/do-not-use-this-perl-module-passwdunix/&amp;title=Do+NOT+Use+This+Perl+Module%3A+Passwd%3A%3AUnix" rel="nofollow" class="external" title="Share this on del.icio.us">Share this on del.icio.us</a>
		</li>
		<li class="shr-stumbleupon">
			<a href="http://www.stumbleupon.com/submit?url=http://beerpla.net/2008/04/22/do-not-use-this-perl-module-passwdunix/&amp;title=Do+NOT+Use+This+Perl+Module%3A+Passwd%3A%3AUnix" rel="nofollow" class="external" title="Stumble upon something good? Share it on StumbleUpon">Stumble upon something good? Share it on StumbleUpon</a>
		</li>
		<li class="shr-mail">
			<a href="mailto:?subject=%22Do%20NOT%20Use%20This%20Perl%20Module%3A%20Passwd%3A%3AUnix%22&amp;body=Link: http://beerpla.net/2008/04/22/do-not-use-this-perl-module-passwdunix/ (sent via shareaholic)%0D%0A%0D%0A----%0D%0A Update%3A%20The%20author%20of%20the%20module%20contacted%20me%20the%20same%20day%20and%20promised%20to%20fix%20it%20in%20the%20next%20version.%20Version%200.40%20was%20indeed%20on%20cpan%20as%20promised%2C%20but%20I%20haven%27t%20tested%20it%20yet.%0D%0A%0D%0APasswd%3A%3AUnix%20will%20corrupt%20your%20%2Fetc%2Fshadow%20file%20and%20rearrange%20login%20names%20and%20their%20corresponding%20password%20hashes.%0D%0A%0D%0ATh" rel="nofollow" class="external" title="Email this to a friend?">Email this to a friend?</a>
		</li>
</ul>
<div style="clear:both;"></div>
</div>
Similar Posts:<ul><li><a href="http://beerpla.net/2010/02/03/how-not-to-implement-a-web-application-that-handles-external-authentication-using-betwittered-com-as-an-example/" rel="bookmark" title="February 3, 2010">How *Not* To Implement A Web Application That Handles External Authentication, Using BeTwittered.com As An Example</a></li>
<li><a href="http://beerpla.net/2007/10/12/cpan-the-perl-module-manager/" rel="bookmark" title="October 12, 2007">cpan &#8211; The Perl Module Manager</a></li>
<li><a href="http://beerpla.net/2008/05/12/a-better-diff-or-what-to-do-when-gnu-diff-runs-out-of-memory-diff-memory-exhausted/" rel="bookmark" title="May 12, 2008">A Better diff Or What To Do When GNU diff Runs Out Of Memory (&quot;diff: memory exhausted&quot;)</a></li>
<li><a href="http://beerpla.net/2008/04/30/how-to-install-the-latest-soaplite-using-perl-cpan/" rel="bookmark" title="April 30, 2008">How To Install The Latest SOAP::Lite Using Perl CPAN</a></li>
<li><a href="http://beerpla.net/2008/04/16/mysql-conference-liveblogging-mysql-performance-under-a-microscope-the-tobias-and-jay-show-wednesday-200pm/" rel="bookmark" title="April 16, 2008">MySQL Conference Liveblogging: MySQL Performance Under A Microscope: The Tobias And Jay Show (Wednesday 2:00PM)</a></li>
</ul><!-- Similar Posts took 13.971 ms --><p><a class="a2a_dd addtoany_share_save" href="http://www.addtoany.com/share_save"><img src="http://beerpla.net/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share/Bookmark"/></a> </p>]]></content:encoded>
			<wfw:commentRss>http://beerpla.net/2008/04/22/do-not-use-this-perl-module-passwdunix/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
	</channel>
</rss>
