On Friday 20 March 2009 16:14:03 Juan Carlos Avila Sanchez wrote:
> > -----Original Message-----
> > From: Lisi Reisz [mailto:lisi.re...@gmail.com]
> > Sent: Friday, March 20, 2009 3:34 AM
> > To: debian-user@lists.debian.org
> > Subject: Re: Technical Inquiry
> >
> > On Friday 20 March 2009 09:01:17 Sudev Barar wrote:
> > > 2009/3/20 Jeffrey Cao <jcao.li...@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.
>
> Some time ago, when lenny was 'testing', I forgot my laptop's root
> password. This is what I did:
>
> 1. Choose 'single user' in grub menu.
> 2. Select your kernel and press e to edit kernel line before boot.
> 3. Add 'init=/bin/sh rw' (or something like that)
> 4. Press b to boot (or enter, don't remember) and change root pass...
>
> Hope it helps..

I have only tried a straight boot up.  Having found that that doesn't work, I 
use chroot from a Live CD because that has always worked when I needed it.  I 
might try your method next time.  I don't have to retrieve root access very 
often.

Lisi


-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to