From owner-freebsd-hackers Mon Jan 27 19:19:47 1997 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.5/8.8.5) id TAA12693 for hackers-outgoing; Mon, 27 Jan 1997 19:19:47 -0800 (PST) Received: from genesis.atrad.adelaide.edu.au (genesis.atrad.adelaide.edu.au [129.127.96.120]) by freefall.freebsd.org (8.8.5/8.8.5) with ESMTP id TAA12680 for ; Mon, 27 Jan 1997 19:19:43 -0800 (PST) Received: (from msmith@localhost) by genesis.atrad.adelaide.edu.au (8.8.2/8.7.3) id NAA06367; Tue, 28 Jan 1997 13:49:15 +1030 (CST) From: Michael Smith Message-Id: <199701280319.NAA06367@genesis.atrad.adelaide.edu.au> Subject: Re: Help - can't login In-Reply-To: <32ED67A1.446B9B3D@w2xo.pgh.pa.us> from Jim Durham at "Jan 27, 97 09:42:41 pm" To: durham@w2xo.pgh.pa.us (Jim Durham) Date: Tue, 28 Jan 1997 13:49:14 +1030 (CST) Cc: radova@risc6.unisa.ac.za, hackers@freebsd.org X-Mailer: ELM [version 2.4ME+ PL28 (25)] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-hackers@freebsd.org X-Loop: FreeBSD.org Precedence: bulk First : this should have gone to -questions, not -hackers. Jim Durham stands accused of saying: > A. Radovanovic wrote: > > > > My freebsd ran out of disk space in /. Unfortunately I rebooted the > > system and now I can't get in - no username or password are accepted. > > If I boot in a single user mode, the file system is mounted as a read > > only and I can't do anything with the passwd file. Don't "do anything with the passwd file". FreeBSD uses a dabase-based shadow password system, and changing /etc/passwd won't do you any good at all. > > Is there any way to get in and repair the damage? > > > Wow..finally a question I can answer! I too have done this deed... > > You need to mount your root partion with "/". This will make the > file system read/write. As in, "mount /dev/wd0a / " . It's easier to say 'mount /' actually. Then you'll want 'mount /usr', and then 'passwd' to change root's password. This should be (is probably) in the FAQ. > Jim Durham -- ]] Mike Smith, Software Engineer msmith@gsoft.com.au [[ ]] Genesis Software genesis@gsoft.com.au [[ ]] High-speed data acquisition and (GSM mobile) 0411-222-496 [[ ]] realtime instrument control. (ph) +61-8-8267-3493 [[ ]] Unix hardware collector. "Where are your PEZ?" The Tick [[