<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="ca">
	<id>https://wiki.espai.de/index.php?action=history&amp;feed=atom&amp;title=Password</id>
	<title>Password - Historial de revisió</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.espai.de/index.php?action=history&amp;feed=atom&amp;title=Password"/>
	<link rel="alternate" type="text/html" href="https://wiki.espai.de/index.php?title=Password&amp;action=history"/>
	<updated>2026-05-27T18:02:44Z</updated>
	<subtitle>Historial de revisió per a aquesta pàgina del wiki</subtitle>
	<generator>MediaWiki 1.39.6</generator>
	<entry>
		<id>https://wiki.espai.de/index.php?title=Password&amp;diff=1094&amp;oldid=prev</id>
		<title>Marti: Es crea la pàgina amb «Source: https://wiki.archlinux.org/index.php/Password_Recovery  This guide will show you how to recover a forgotten root password.  A several methods are available that c...».</title>
		<link rel="alternate" type="text/html" href="https://wiki.espai.de/index.php?title=Password&amp;diff=1094&amp;oldid=prev"/>
		<updated>2012-10-28T15:54:02Z</updated>

		<summary type="html">&lt;p&gt;Es crea la pàgina amb «Source: https://wiki.archlinux.org/index.php/Password_Recovery  This guide will show you how to recover a forgotten root password.  A several methods are available that c...».&lt;/p&gt;
&lt;p&gt;&lt;b&gt;Pàgina nova&lt;/b&gt;&lt;/p&gt;&lt;div&gt;Source: https://wiki.archlinux.org/index.php/Password_Recovery&lt;br /&gt;
&lt;br /&gt;
This guide will show you how to recover a forgotten root password.  A several methods are available that can help you accomplish this.&lt;br /&gt;
&lt;br /&gt;
== Using a LiveCD ==&lt;br /&gt;
&lt;br /&gt;
With a LiveCD a couple methods are available: change root and use the '''passwd''' command, or erase the password field entry.  Any Linux capable LiveCD can be used, albeit to change root it much match your installed architecture type.&lt;br /&gt;
&lt;br /&gt;
=== Change Root ===&lt;br /&gt;
&lt;br /&gt;
# Boot the LiveCD, and [https://wiki.archlinux.org/index.php/Change_Root change root].&lt;br /&gt;
# Use the '''passwd''' command to reset your root password.&lt;br /&gt;
# Exit [https://wiki.archlinux.org/index.php/Change_Root change root].&lt;br /&gt;
# Reboot, and remember your password.&lt;br /&gt;
&lt;br /&gt;
=== Password Erase ===&lt;br /&gt;
&lt;br /&gt;
1. Boot the LiveCD, and mount your root ('''/''') partition.  For example:&lt;br /&gt;
&lt;br /&gt;
 mkdir /mnt/arch&lt;br /&gt;
 mount /dev/sda2 /mnt/arch&lt;br /&gt;
&lt;br /&gt;
2. Edit the password file with your editor.  Example vim:&lt;br /&gt;
&lt;br /&gt;
 vim /mnt/arch/etc/shadow&lt;br /&gt;
&lt;br /&gt;
3. Delete the second field on the root line (in [https://wiki.archlinux.org/index.php/Vim vim] this can be done by going to the first letter/symbol in the field and typing '''d/:/''' then '''Enter'''):&lt;br /&gt;
&lt;br /&gt;
 root:'''$1$9gDquXRP$gbOHLXuqslL.rw81q4pHc1''':14589::::::&lt;br /&gt;
&lt;br /&gt;
4. Save the file (''':x''' in vim).&lt;br /&gt;
&lt;br /&gt;
5. Reboot and root login will not require a password.&lt;br /&gt;
&lt;br /&gt;
== Using GRUB to Invoke Bash ==&lt;br /&gt;
&lt;br /&gt;
1. Select the appropriate boot entry in the GRUB menu and press '''e''' to edit the line.&lt;br /&gt;
&lt;br /&gt;
2. Select the kernel line and press '''e''' again to edit it.&lt;br /&gt;
&lt;br /&gt;
3. Append '''1=init=/bin/bash''' at the end of line.&lt;br /&gt;
&lt;br /&gt;
4. Press '''b''' to boot (this change is only temporary and will not be saved to your menu.lst).  After booting you will be at the bash prompt.&lt;br /&gt;
&lt;br /&gt;
5. Your root file system should be mounted as readonly so remount it as read/write:&lt;br /&gt;
&lt;br /&gt;
 # mount -n -o remount,rw /&lt;br /&gt;
&lt;br /&gt;
6. Use the '''passwd''' command to create a new root password.&lt;br /&gt;
&lt;br /&gt;
7. Reboot and do not lose your password again!&lt;br /&gt;
&lt;br /&gt;
 Some keyboards may not be loaded properly by the init system with this method and you will not be able to type anything at the bash prompt.  If this is the case, you will have to use another method.&lt;br /&gt;
&lt;br /&gt;
== Resources ==&lt;br /&gt;
&lt;br /&gt;
* [http://www.howtoforge.com/how-to-reset-a-forgotten-root-password-with-knoppix-p2 this guide] for an example.&lt;/div&gt;</summary>
		<author><name>Marti</name></author>
	</entry>
</feed>