From owner-freebsd-questions Wed Apr 8 00:48:42 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id AAA11618 for freebsd-questions-outgoing; Wed, 8 Apr 1998 00:48:42 -0700 (PDT) (envelope-from owner-freebsd-questions@FreeBSD.ORG) Received: from penguin.wise.edt.ericsson.se (penguin-ext.wise.edt.ericsson.se [194.237.142.5]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id AAA11105 for ; Wed, 8 Apr 1998 00:45:41 -0700 (PDT) (envelope-from erakupa@kk.etx.ericsson.se) Received: from kkb3 (kkb3.kk.etx.ericsson.se [130.100.97.23]) by penguin.wise.edt.ericsson.se (8.7.5/8.7.3/glacier-1.12) with SMTP id JAA06057 for ; Wed, 8 Apr 1998 09:44:35 +0200 (MET DST) Received: from kk662.kk.etx.ericsson.se by kkb3 (SMI-8.6/LME-2.2.6) id JAA14662; Wed, 8 Apr 1998 09:44:26 +0200 From: erakupa@kk.etx.ericsson.se (ETX-B-SL Martti Kuparinen) Received: by kk662.kk.etx.ericsson.se (SMI-8.6/client-1.6) id JAA00836; Wed, 8 Apr 1998 09:44:28 +0200 Date: Wed, 8 Apr 1998 09:44:28 +0200 Message-Id: <199804080744.JAA00836@kk662.kk.etx.ericsson.se> To: questions@FreeBSD.ORG Subject: Re: invalid password in single-user mode X-Sun-Charset: US-ASCII Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Doug White wrote: > > What's wrong with my 2.2.6-RELEASE machine? In the multi-user > > mode I can login as root, but the root password is not accepted in > > single-user mode. I am using non-US version of DES instead of > > MD5 if that matters... > > you need the root password in single user mode? Well, I have in /etc/ttys # If you want to be asked for password, # change "secure" to "insecure" here console none unknown off insecure I have also disabled boot from floppy and activated BIOS password to give better security (I known, one could always open the box...). So this is not really needed but one of those "nice-to-have" things. > Are you running NIS? Yes, this is a NIS client. I was doing some LKM development and had a pointer error somewhere... So I rebooted (again). Somehow /var was corrupted and fsck was unable to repair it. As a result my pc could not go to multi-user mode. So there I was -- being asked for root's password to enter the single-user mode (which was not accepted). Which in turn means I could not run "fsck -y /var" manually. So this was like a chicken-egg -thing... The solution was to boot with installation floppy and use the FixIt floppy, and run fsck. But the question remains: why can't I login? /Martti To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message