Mailinglist Archive: opensuse (671 mails)

< Previous Next >
Re: [opensuse] Forgot root password
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@xxxxxxxxxxxx
For additional commands, e-mail: opensuse+help@xxxxxxxxxxxx

< Previous Next >
Follow Ups
References