From owner-freebsd-questions Thu Feb 17 7:26:26 2000 Delivered-To: freebsd-questions@freebsd.org Received: from kcmso1.proxy.att.com (kcmso1.att.com [192.128.133.69]) by hub.freebsd.org (Postfix) with ESMTP id 974EE37B73B for ; Thu, 17 Feb 2000 07:26:13 -0800 (PST) (envelope-from jwb@homer.att.com) Received: from ulysses.homer.att.com ([135.205.193.4]) by kcmso1.proxy.att.com (AT&T IPNS/MSO-2.2) with ESMTP id KAA27375; Thu, 17 Feb 2000 10:25:25 -0500 (EST) Received: from akiva.homer.att.com (akiva.homer.att.com [135.205.198.103]) by ulysses.homer.att.com (8.9.3/8.9.3) with ESMTP id KAA17007; Thu, 17 Feb 2000 10:25:24 -0500 (EST) Received: from akiva.homer.att.com (localhost [127.0.0.1]) by akiva.homer.att.com (8.8.8+Sun/8.8.8) with ESMTP id KAA20860; Thu, 17 Feb 2000 10:25:24 -0500 (EST) Message-Id: <200002171525.KAA20860@akiva.homer.att.com> X-Mailer: exmh version 2.0.3 3/22/1999 To: Ruslan Ermilov Cc: freebsd-questions@freebsd.org Subject: Re: passwd file repair In-reply-to: Your message of "Thu, 17 Feb 2000 17:12:20 +0200." <20000217171220.D38813@relay.ucb.crimea.ua> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Thu, 17 Feb 2000 10:25:23 -0500 From: "J. W. Ballantine" Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG ---------- In Response to your message ------------- > Date: Thu, 17 Feb 2000 17:12:20 +0200 > To: "J. W. Ballantine" > From: Ruslan Ermilov > Subject: Re: passwd file repair > > On Thu, Feb 17, 2000 at 09:00:51AM -0500, J. W. Ballantine wrote: > > > > ---------- In Response to your message ------------- > > > > > Date: Thu, 17 Feb 2000 15:43:40 +0200 > > > To: "J. W. Ballantine" > > > From: Ruslan Ermilov > > > Subject: Re: passwd file repair > > > > > > 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 . > > done with mount -a -a ufs and I did check and it is, infact when I ls -ltr > > /usr/bin/vi it is displayed. > > > 2. Make sure /usr/bin is in your PATH environment variable. > > I did, it is. It fails with ex/vi not found even when I try to > > run /usr/bin/vi. Seems to be a console issue??? > > > > Thanks > > Jim > > 1. What is the FreeBSD version you are using? FreeBSD 3.4 - RELEASE > 2. What is the *exact* error message displayed? To the best of my recollection it is: vipw failed ex/vi not found > 3. Does `vi' work or fails with the same error? Fails in the same way. returns with message ex/vi not found > > Try the following (from sh(1)): > # EDITOR=/usr/bin/ee vipw > > > Cheers, > -- > 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