<div dir="ltr"><p style="color:rgb(0,0,0)"><font face="times new roman, serif" size="4">I got a friend upon whose computer (old XP) I installed Linux. She called me last night because she forgot the password. Well, I asked the Florida user group about what to do and this is what they had to say:</font></p><p style="color:rgb(0,0,0)"><font face="times new roman, serif" size="4"><br></font></p><p style="color:rgb(0,0,0)"><font face="times new roman, serif" size="4">Just use GRUB to boot into single user mode / recovery mode.<br></font></p><p style="color:rgb(0,0,0)"><font face="times new roman, serif" size="4">Append <em>init=/bin/sh</em> to the kernel command line, then mount the root filesystem (if it isn't already done for you) and run <em>passwd </em>to reset the root password or <em>password user </em>to reset user's password.<br></font></p><div><p style="color:rgb(0,0,0)"><a href="http://www.debuntu.org/how-to-recover-root-password-under-linux-with-single-user-mode/" target="_blank"><font face="times new roman, serif" size="4"><br>http://www.debuntu.org/how-to-recover-root-password-under-linux-with-single-user-mode/</font></a></p></div><div><font face="times new roman, serif" size="4">I'd bring a CD containing System Rescue CD just in case.<br><br><a href="http://www.sysresccd.org/SystemRescueCd_Homepage" target="_blank">http://www.sysresccd.org/SystemRescueCd_Homepage</a><br><br>By the way, you can bust back into borked VMs with System Rescue CD ISO<br>files, too.<br><br>By the way, if you use System Rescue CD, do something like this,<br>assuming her / is the mountpoint for /dev/sda1:<br><br>mount /dev/sda1 /mnt<br>chroot /mnt/ bash<br>cd /etc<br>vi passwd<br><br>Now delete the x between the first and second colons, for both user<br>root and her ordinary username, then quit vi<br><br>exit<br>umount /mnt<br>reboot<br><br>Now, when asked for her password, leave it blank and she'll get in.<br>Then she can change her password as desired. Same thing's true the<br>first time she logs in as root.<br><br>If she's not trustworthy enough to leave with blank passwords, you<br>could probably use the passwd program after the chroot to change the<br>passwords.<br></font></div><div><div><font face="times new roman, serif" size="4">:-)~MIKE~(-:</font></div></div>
</div>