vote up 0 vote down star

In a knopix enable to access another drive because i forgot the password how to recover that password or change password.

flag

2 Answers

vote up 1 vote down

When booting, press any key at the GRUB menu and highlight the kernel of your choice. Press e on the selected kernel to append to it's boot options, and enter single at the end of the line. Press Enter and then b to boot into single user mode. It will leave you at a sh prompt where you can then use the passwd command to change your password.

example:

sh-3.2# passwd john
Changing password for john
Enter new UNIX password:
Retype new UNIX password:
passwd: password updated successfully
sh-3.2#

as you can see, it will not prompt you for your previous password.

link|flag
vote up 1 vote down

John T's suggestion to enter single user mode is the safest thing to try first. If that's not sorking for you, and depending on your configuration, you may want to check out this page, giving a variety of approaches.

link|flag

Your Answer

Get an OpenID
or
never shown

Not the answer you're looking for? Browse other questions tagged or ask your own question.