[prev in list] [next in list] [prev in thread] [next in thread] 

List:       redhat-list
Subject:    Re: root password  recovery
From:       "Jesus Ortega (a.k.a. Nitebirdz)" <nitebirdz () qwest ! net>
Date:       2001-07-31 11:17:01
[Download RAW message or body]

On Mon, 30 Jul 2001, Steve Manuel wrote:

> Date: Mon, 30 Jul 2001 18:29:03 -0500
> From: Steve Manuel <sdmanuel1@yahoo.com>
> Reply-To: redhat-list@redhat.com
> To: redhat-list@redhat.com
> Cc: Kapil Sharma <linux4biz@yahoo.com>
> Subject: Re: root password  recovery
>
> On Mon, Jul 30, 2001 at 04:03:10PM -0700, Kapil Sharma wrote:
> <snip>
> > I have following queries:
> > 1: First of all how to disable linux single command so
> > that it cannot be executed from lilo prompt?
>
> ~:S:wait:/sbin/sulogin
>

This snippet should go in the /etc/inittab file.  Steve seemed to forget
that.  Also, I've always seen it with two tildes as in:

~~:S:wait:/sbin/sulogin


I believe Debian's inittab comes preconfigured this way already.  Another
way to do it is to configure LILO to request a password, which you can do
with this example of /etc/lilo.conf (I found it somewhere on the Web),
although Steve's idea may be preferable:

boot=/dev/hda
map=/boot/map
install=/boot/boot.b
prompt
timeout=50
linear
default=linux
restricted    /****enter these 2 lines ***/
password=lawrie123 /**<--put u're password here***/

image=/boot/vmlinuz-2.2.14-12
        label=linux
        read-only
        root=/dev/hda8

other=/dev/hda1
        label=freebsd    /* Yours could be dos/win)*/


For more information, check out the manual page for lilo.


> > 2: id linux single has been already disabled then how
> > can i recover my root password and boot my system
> > again.
>
> Using the recovery function of the install disk (disk 1). After booting
> up go to /mnt/sysimage/etc/shadow and remove the encrypted password
> for root. Now you should be able to login as root w/o a password.
>
> > 3: What are the fifferent ways to recover root
> > password.
>
> See #2
>
> Steve
>


Once in single user mode, simply re-run the passwd command.  You can also
remove the second field for root's user in the /etc/shadow file, and
that will leave root's account without any password (make sure you add
a new password immediately).  If you're unable to even get to single user
mode, you should also be able to boot from the Red Hat installation CD
and enter "rescue" at the prompt.



-- 
------------------------------------------------------
Nitebirdz
------------------------------------------------------
http://www.linuxnovice.org
News, tips, articles, links...

*** http://www.mozilla.org ***



_______________________________________________
Redhat-list mailing list
Redhat-list@redhat.com
https://listman.redhat.com/mailman/listinfo/redhat-list

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic