Date: Wed, 23 Apr 1997 15:50:25 +0000 From: Pierre-Andre van Leeuwen <pvl@nanoteq.com> To: Mike Tancsa <mike@sentex.net> Cc: hey@tuns.ca (Yingjun He), questions@FreeBSD.ORG Subject: Re: root password post install (was Re: ) Message-ID: <199704231550.PAA02863@pc-pvl.nanoteq.co.za> In-Reply-To: Your message of "Wed, 23 Apr 1997 09:00:43 -0400." <3.0.1.32.19970423090043.00b27ea0@sentex.net>
next in thread | previous in thread | raw e-mail | index | archive | help
> 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 * ********************************
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199704231550.PAA02863>