Re: Technical Inquiry
On Fri, Mar 20, 2009 at 09:33:54AM +0000, Lisi Reisz wrote:
> On Friday 20 March 2009 09:01:17 Sudev Barar wrote:
> > 2009/3/20 Jeffrey Cao <jcao.linux@gmail.com>:
> > > Boot into single user mode, and you are the root.
> > > Then, you can change root password.
> >
> > Ah..banging my head why I did not think of this...
>
> Because it doesn't work in Etch or Lenny? Don't know about other versions of
> Debian. I have certainly used distros where it did work.
>
> If you try to boot into single user mode it demands the root password.
> Otherwise it won't let you in.
Put init=/bin/sh on the kernel command line (assuming that you didn't
also put a password on the boot loader menu). You'll end up running
/bin/sh instead of init. All you'll have is the / mounted ro.
Doug.
Reply to: