From owner-freebsd-questions Fri May 30 11:10:08 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.5/8.8.5) id LAA29544 for questions-outgoing; Fri, 30 May 1997 11:10:08 -0700 (PDT) Received: from helbig.informatik.ba-stuttgart.de (helbig.informatik.ba-stuttgart.de [141.31.166.22]) by hub.freebsd.org (8.8.5/8.8.5) with ESMTP id LAA29539 for ; Fri, 30 May 1997 11:10:04 -0700 (PDT) Received: (from helbig@localhost) by helbig.informatik.ba-stuttgart.de (8.8.5/8.8.5) id UAA00308; Fri, 30 May 1997 20:09:07 +0200 (MET DST) From: Wolfgang Helbig Message-Id: <199705301809.UAA00308@helbig.informatik.ba-stuttgart.de> Subject: Re: Never thought I could be so stupid! In-Reply-To: <338EE26B.5A1@cableinet.co.uk> from Andy Pendry at "May 30, 97 02:21:30 pm" To: andy.p@cableinet.co.uk Date: Fri, 30 May 1997 20:09:07 +0200 (MET DST) Cc: freebsd-questions@FreeBSD.ORG X-Mailer: ELM [version 2.4ME+ PL30 (25)] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-questions@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk > > I was changing user passwd's in root, and I enterted passwd without a > user name (I was distracted). When I rebooted, I couldn't get into root > because I had unwittingly changed the root passwd. > > I have tried using a boot floppy. The change root passwd option is > avaialable in the menu, but when I select it, it just redisplays the > menu. It would be *very* nice if this would work! But at that time sysinstall does not know anything about your harddisk and your configuration, and it would compromise security of the installed system, if everybody with boot.flp can become root. But there is another way out: Boot from harddisk in single user mode (enter -s at the boot: prompt). This will let you use the sh as root without having to know the root password. (unless you marked the `console' entry `insecure' in ttys(5)) Then mount all filesystems (mount -a) and enter passwd(8) . After changing your password, exit the shell (^D) and you will be put into multiuser mode. Wolfgang