<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	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/"
		>
<channel>
	<title>Comments on: How to Reset debian Root Password</title>
	<atom:link href="http://www.debianadmin.com/how-to-reset-debian-root-password.html/feed" rel="self" type="application/rss+xml" />
	<link>http://www.debianadmin.com/how-to-reset-debian-root-password.html</link>
	<description>Debian/Ubuntu Linux System Administration Tutorials,Howtos,Tips</description>
	<lastBuildDate>Mon, 06 Feb 2012 02:01:37 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
	<item>
		<title>By: Bernard</title>
		<link>http://www.debianadmin.com/how-to-reset-debian-root-password.html/comment-page-1#comment-9422</link>
		<dc:creator>Bernard</dc:creator>
		<pubDate>Mon, 30 Jan 2012 17:46:38 +0000</pubDate>
		<guid isPermaLink="false">http://www.debianadmin.com/?p=1622#comment-9422</guid>
		<description>My way of solving this issue: 
1. Start up the computer with a linux live CD (or USB key). Doesn&#039;t matter if it&#039;s a Debian, Ubuntu or probably any other distro - I used an Ubuntu 11.10 USB key.
2. Using the Disk Utilities available from your device, mount the partition that hosts your /etc folder (probably marked as bootable)
3.in a command line, go to ./etc under your mounted partition, probably in /media/[a long hd id-like number]. Notice the dot (.) before /etc; don&#039;t go to &quot;/etc&quot;. You can check that you&#039;re in the right folder with a little &quot;grep -i [name of a user of yours (not root!)] shadow&quot; If you get anything, you&#039;re in the right folder and you can proceed to step 4.
4. Just to be safe, make a backup copy of your &quot;shadow&quot; file. I simply used a &quot;cp ./shadow /media/[an inserted and mounted USB key]/shadow&quot; command.
5. Using your favorite text editor (I used nano because I know it&#039;s available on my key), edit your &quot;shadow&quot; file (&quot;nano shadow&quot;)
6. Locate the root line. It&#039;ll look something like &quot;root:[encrypted pw]:12345:5:99999:::&quot; (figures are made up)
7. replace the [encrypted pw] part of the line with a single &quot;!&quot;. Yep, just an Exclamation mark with no double quotation mark. That tells Linux to authorize the mentioned user to access the system with no pw, so be cautious ! Your line will then look something like &quot;root:!:12345:5:99999:::&quot;
8. Save your changes and exit the command line
9. Back to your Disk Utilities program, unmount the partition you mounted in step  2 above.
10 Turn your computer off and remove all media, may it be USB key, CD, or whatever.
11 Restart your computer and, in the grub menu, choose &quot;rescue mode&quot;. You&#039;ll find yourself in a command line of a root session with no pw.
12 change your pw with a &quot;passwd&quot; command. If you&#039;re not sure, &quot;man passwd&quot; should help.

I know it&#039;s somewhat lenghty, but it worked for me in a few minutes.</description>
		<content:encoded><![CDATA[<p>My way of solving this issue:<br />
1. Start up the computer with a linux live CD (or USB key). Doesn&#8217;t matter if it&#8217;s a Debian, Ubuntu or probably any other distro - I used an Ubuntu 11.10 USB key.<br />
2. Using the Disk Utilities available from your device, mount the partition that hosts your /etc folder (probably marked as bootable)<br />
3.in a command line, go to ./etc under your mounted partition, probably in /media/[a long hd id-like number]. Notice the dot (.) before /etc; don&#8217;t go to &#8220;/etc&#8221;. You can check that you&#8217;re in the right folder with a little &#8220;grep -i [name of a user of yours (not root!)] shadow&#8221; If you get anything, you&#8217;re in the right folder and you can proceed to step 4.<br />
4. Just to be safe, make a backup copy of your &#8220;shadow&#8221; file. I simply used a &#8220;cp ./shadow /media/[an inserted and mounted USB key]/shadow&#8221; command.<br />
5. Using your favorite text editor (I used nano because I know it&#8217;s available on my key), edit your &#8220;shadow&#8221; file (&#8220;nano shadow&#8221;)<br />
6. Locate the root line. It&#8217;ll look something like &#8220;root:[encrypted pw]:12345:5:99999:::&#8221; (figures are made up)<br />
7. replace the [encrypted pw] part of the line with a single &#8220;!&#8221;. Yep, just an Exclamation mark with no double quotation mark. That tells Linux to authorize the mentioned user to access the system with no pw, so be cautious ! Your line will then look something like &#8220;root:!:12345:5:99999:::&#8221;<br />
8. Save your changes and exit the command line<br />
9. Back to your Disk Utilities program, unmount the partition you mounted in step  2 above.<br />
10 Turn your computer off and remove all media, may it be USB key, CD, or whatever.<br />
11 Restart your computer and, in the grub menu, choose &#8220;rescue mode&#8221;. You&#8217;ll find yourself in a command line of a root session with no pw.<br />
12 change your pw with a &#8220;passwd&#8221; command. If you&#8217;re not sure, &#8220;man passwd&#8221; should help.</p>
<p>I know it&#8217;s somewhat lenghty, but it worked for me in a few minutes.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: cleopatra</title>
		<link>http://www.debianadmin.com/how-to-reset-debian-root-password.html/comment-page-1#comment-9323</link>
		<dc:creator>cleopatra</dc:creator>
		<pubDate>Thu, 19 Jan 2012 02:20:55 +0000</pubDate>
		<guid isPermaLink="false">http://www.debianadmin.com/?p=1622#comment-9323</guid>
		<description>Indeed, it worked just fine on my cruncgbang. Thanx!</description>
		<content:encoded><![CDATA[<p>Indeed, it worked just fine on my cruncgbang. Thanx!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Oluype</title>
		<link>http://www.debianadmin.com/how-to-reset-debian-root-password.html/comment-page-1#comment-8707</link>
		<dc:creator>Oluype</dc:creator>
		<pubDate>Wed, 13 Jul 2011 07:54:29 +0000</pubDate>
		<guid isPermaLink="false">http://www.debianadmin.com/?p=1622#comment-8707</guid>
		<description>Clear and simple instruction. thank worked just fine for me...

Regards</description>
		<content:encoded><![CDATA[<p>Clear and simple instruction. thank worked just fine for me&#8230;</p>
<p>Regards</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: lom56</title>
		<link>http://www.debianadmin.com/how-to-reset-debian-root-password.html/comment-page-1#comment-8594</link>
		<dc:creator>lom56</dc:creator>
		<pubDate>Fri, 06 May 2011 14:28:59 +0000</pubDate>
		<guid isPermaLink="false">http://www.debianadmin.com/?p=1622#comment-8594</guid>
		<description>thanks, this article useful to me</description>
		<content:encoded><![CDATA[<p>thanks, this article useful to me</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: johnathan</title>
		<link>http://www.debianadmin.com/how-to-reset-debian-root-password.html/comment-page-1#comment-8169</link>
		<dc:creator>johnathan</dc:creator>
		<pubDate>Thu, 10 Feb 2011 07:33:35 +0000</pubDate>
		<guid isPermaLink="false">http://www.debianadmin.com/?p=1622#comment-8169</guid>
		<description>I followed the instructions and they worked up until I tried to change the pw. I got 

&quot;passwd: User not known to the authentication module&quot;
&quot;passwd: pasword unchanged</description>
		<content:encoded><![CDATA[<p>I followed the instructions and they worked up until I tried to change the pw. I got </p>
<p>&#8220;passwd: User not known to the authentication module&#8221;<br />
&#8220;passwd: pasword unchanged</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Pisithanate</title>
		<link>http://www.debianadmin.com/how-to-reset-debian-root-password.html/comment-page-1#comment-7822</link>
		<dc:creator>Pisithanate</dc:creator>
		<pubDate>Sat, 25 Dec 2010 11:46:12 +0000</pubDate>
		<guid isPermaLink="false">http://www.debianadmin.com/?p=1622#comment-7822</guid>
		<description>When i press &quot;b&quot; is just boot up, i can&#039;t type &quot;mount -n -o remount,rw /&quot;</description>
		<content:encoded><![CDATA[<p>When i press &#8220;b&#8221; is just boot up, i can&#8217;t type &#8220;mount -n -o remount,rw /&#8221;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Douglas</title>
		<link>http://www.debianadmin.com/how-to-reset-debian-root-password.html/comment-page-1#comment-6171</link>
		<dc:creator>Douglas</dc:creator>
		<pubDate>Thu, 28 Oct 2010 17:12:34 +0000</pubDate>
		<guid isPermaLink="false">http://www.debianadmin.com/?p=1622#comment-6171</guid>
		<description>I use this command, but it&#039;s not recovery my password</description>
		<content:encoded><![CDATA[<p>I use this command, but it&#8217;s not recovery my password</p>
]]></content:encoded>
	</item>
</channel>
</rss>

