Mailinglist Archive: opensuse (671 mails)
| < Previous | Next > |
Re: [opensuse] Forgot root password
- From: Dimstar / Dominique Leuenberger <dimstar@xxxxxxxxxxxx>
- Date: Tue, 28 Jun 2011 20:56:08 +0200
- Message-id: <1309287369.3344.14.camel@3120-3560.ams.tmf-group.com>
On Mon, 2011-06-27 at 10:40 -0400, Adam Tong wrote:
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
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 > |