Date: Tue, 28 Jan 1997 13:49:14 +1030 (CST) From: Michael Smith <msmith@atrad.adelaide.edu.au> To: durham@w2xo.pgh.pa.us (Jim Durham) Cc: radova@risc6.unisa.ac.za, hackers@freebsd.org Subject: Re: Help - can't login Message-ID: <199701280319.NAA06367@genesis.atrad.adelaide.edu.au> In-Reply-To: <32ED67A1.446B9B3D@w2xo.pgh.pa.us> from Jim Durham at "Jan 27, 97 09:42:41 pm"
next in thread | previous in thread | raw e-mail | index | archive | help
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 [[
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199701280319.NAA06367>