28 Jun
2011
28 Jun
'11
18:56
On Mon, 2011-06-27 at 10:40 -0400, Adam Tong wrote:
Hi,
How can i recover my root password or create a new one. I coosed a complicated one and forgot it.
Assuming you have access to the console, and your grub is not secured (so no password in grub), you can pass init=/bin/sh as command on the boot line. This will get you right into a shell without any services. Modify /etc/passwd and /etc/shadow accordingly and you should have a new pass in no time. Alternatively, of course, you can boot off a life cd, mount your root partition and modify those files. Dominique -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org