From owner-freebsd-questions Thu Feb 17 5:45:38 2000 Delivered-To: freebsd-questions@freebsd.org Received: from relay.ucb.crimea.ua (UCB-Async4-CRISCO.CRIS.NET [212.110.129.130]) by hub.freebsd.org (Postfix) with ESMTP id C3E7237B72E for ; Thu, 17 Feb 2000 05:45:24 -0800 (PST) (envelope-from ru@ucb.crimea.ua) Received: (from ru@localhost) by relay.ucb.crimea.ua (8.9.3/8.9.3/UCB) id PAA34325; Thu, 17 Feb 2000 15:43:40 +0200 (EET) (envelope-from ru) Date: Thu, 17 Feb 2000 15:43:40 +0200 From: Ruslan Ermilov To: "J. W. Ballantine" Cc: freebsd-questions@FreeBSD.ORG Subject: Re: passwd file repair Message-ID: <20000217154340.A31400@relay.ucb.crimea.ua> Mail-Followup-To: "J. W. Ballantine" , freebsd-questions@FreeBSD.ORG References: <200002171310.IAA20440@akiva.homer.att.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.95.3i In-Reply-To: <200002171310.IAA20440@akiva.homer.att.com>; from J. W. Ballantine on Thu, Feb 17, 2000 at 08:10:17AM -0500 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Thu, Feb 17, 2000 at 08:10:17AM -0500, J. W. Ballantine wrote: > > Since the questions search/browse is down on freebsd.org, I'm asking for > some help in repairing the passwd file that I managed to mess up. > > I boot in single user mode, enter: > mount -u / > mount -t -a ufs > swapon -a > > and then enter vipw, to which I get ex/vi not found. > > What else/does one need to do to run vipw in single user mode, > or what needs to be done to rebuild the shadow passwd file if I > edit passwd with ex??? > 1. Check that your /usr filesystem is mounted, and you have /usr/bin/vi. 2. Make sure /usr/bin is in your PATH environment variable. -- Ruslan Ermilov Sysadmin and DBA of the ru@ucb.crimea.ua United Commercial Bank, ru@FreeBSD.org FreeBSD committer, +380.652.247.647 Simferopol, Ukraine http://www.FreeBSD.org The Power To Serve http://www.oracle.com Enabling The Information Age To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message