Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 22 Aug 95 18:13:56 -0400
From:      LPPelletier@cmq.qc.ca (Luc Pelletier)
To:        questions@FreeBSD.org
Subject:   Root passwd again!
Message-ID:  <2181147.ensmtp@cmq.qc.ca>

next in thread | raw e-mail | index | archive | help
Hi everybody!

A few days ago, I sent the following message : 

>I have forget my root password. What can I do to recover from that?
>Is there some kind of trick?
>I thought of making some special boot diskette in order to edit the password
file.
>Will that work? How can I make this disquette?

HERE ARE THE ANSWERS I GOT : 

At the boot prompt, specify the "-s" flag.  This will drop you
into single user mode where you can change root's password to 
what every you want.
Justin T. Gibbs
-------------------------------------------------------------------------------
----
Just boot with -s, then mount -a, then run passwd.
 Jaye Mathisen <mrcpu@cdsnet.net>
-------------------------------------------------------------------------------
-----
If your console was not made secure, boot single user (with the '-s'
option at the FreeBSD boot prompt). Then fsck -p all your disks, 
mount -a and passwd.
-Guido
-------------------------------------------------------------------------------
-----------------------------------------------------
Try "-s" at the kernel boot prompt; that will put you in single user 
mode.  You can then use the passwd command to fix the password.
Mike Newell

HERE IS MY PROBLEM STATUS ON TUESDAY AFTERNOON :

At the boot: prompt, I typed  -s  and nothing else. The system proceed and I
got to the 'Type CTRL-D for normal startup or root password for system
maintenance'  prompt.

Remeber : I don't remember my root password! I told myself that I did
something wrong. I reboot the system and, at the boot: prompt, I typed  
hd(0,a)/kernel -s    but again I got the 'Type CTRL-D for normal startup or
root password for system maintenance'  prompt.

QUESTION : What should I type exactly at the boot: prompt   to avoid being
asked for the root password and to be able to enter a new one?

Thank you, thank you, thank you   -Lpp



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?2181147.ensmtp>