From owner-freebsd-questions Wed Apr 23 05:56:42 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.5/8.8.5) id FAA28308 for questions-outgoing; Wed, 23 Apr 1997 05:56:42 -0700 (PDT) Received: from sand.sentex.ca (sand.sentex.ca [206.222.77.6]) by hub.freebsd.org (8.8.5/8.8.5) with ESMTP id FAA28303 for ; Wed, 23 Apr 1997 05:56:39 -0700 (PDT) Received: from gravel (gravel.sentex.ca [205.211.165.210]) by sand.sentex.ca (8.8.5/8.8.3) with SMTP id JAA00564; Wed, 23 Apr 1997 09:00:57 -0400 (EDT) Message-Id: <3.0.1.32.19970423090043.00b27ea0@sentex.net> X-Sender: mdtancsa@sentex.net X-Mailer: Windows Eudora Pro Version 3.0.1 (32) Date: Wed, 23 Apr 1997 09:00:43 -0400 To: hey@tuns.ca (Yingjun He), questions@FreeBSD.org From: Mike Tancsa Subject: Re: root password post install (was Re: ) In-Reply-To: <199704231230.FAA27451@hub.freebsd.org> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Sender: owner-questions@FreeBSD.org X-Loop: FreeBSD.org Precedence: bulk At 09:27 AM 4/23/97 -0300, Yingjun He wrote: >I just installed FreeBSD 2.2. Everything seems fine. But Atfter I reboot >the system from hard disk I cannot login. I was asked for passward for root >which I don't know because I did not set a password for root and I also >did not add any user during the installation. > >I don't like to reinstall the system (It takes me several hours to install >everything). Is there anyway to erase the password and get into root? I >tried to use "kernek -s" to boot but I cannot edit /etc/passwd with vi. If no root password was set, then just hit enter at the password prompt. Otherwise, boot with the -s switch at boot time to go into single user mode. Then type passwd root and set the password to what you want. You can edit the master.passwd file with the command vipw ---Mike ********************************************************************** Mike Tancsa (mike@sentex.net) * To do is to be -- Nietzsche Sentex Communications Corp, * To be is to do -- Sartre Cambridge, Ontario * Do be do be do -- Sinatra (http://www.sentex.net/~mdtancsa) *