From owner-freebsd-questions Wed Apr 23 06:51:58 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.5/8.8.5) id GAA00823 for questions-outgoing; Wed, 23 Apr 1997 06:51:58 -0700 (PDT) Received: from pc-pvl.nanoteq.co.za (pc-pvl.nanoteq.co.za [163.195.219.103]) by hub.freebsd.org (8.8.5/8.8.5) with ESMTP id GAA00809 for ; Wed, 23 Apr 1997 06:51:42 -0700 (PDT) Received: from pc-pvl.nanoteq.co.za (localhost [127.0.0.1]) by pc-pvl.nanoteq.co.za (8.8.5/8.8.5) with ESMTP id PAA02863; Wed, 23 Apr 1997 15:50:26 GMT Message-Id: <199704231550.PAA02863@pc-pvl.nanoteq.co.za> To: Mike Tancsa cc: hey@tuns.ca (Yingjun He), questions@FreeBSD.ORG Subject: Re: root password post install (was Re: ) In-reply-to: Your message of "Wed, 23 Apr 1997 09:00:43 -0400." <3.0.1.32.19970423090043.00b27ea0@sentex.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Wed, 23 Apr 1997 15:50:25 +0000 From: Pierre-Andre van Leeuwen 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. Thats is not true - 2.2 doesn't allow passwordless accounts > 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 You'l have to mount / and /usr first. ( vipw and passwd is under /usr/sbin ) The easiest way to solve your problem is to do what I did when it happened to me ( shouldn't there be some kind of warning about new features like this in sysinstall? ) is to reboot with the boot floppy, go to the shell by pressing alt-f4 and run passwd. pierre > -- Pierre-Andre van Leeuwen Electronic Engineer Powered By FreeBSD ******************************** * Nanoteq (Pty) Ltd. * * Specialists in data security * * E-mail : pvl@nanoteq.com * * Ph : +27 (0)12 665-1338 * * http://www.nanoteq.co.za * ********************************