Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 17 Feb 2000 09:00:51 -0500
From:      "J. W. Ballantine" <jwb@homer.att.com>
To:        Ruslan Ermilov <ru@ucb.crimea.ua>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: passwd file repair 
Message-ID:  <200002171400.JAA20528@akiva.homer.att.com>
In-Reply-To: Your message of "Thu, 17 Feb 2000 15:43:40 %2B0200." <20000217154340.A31400@relay.ucb.crimea.ua> 

next in thread | previous in thread | raw e-mail | index | archive | help

----------  In Response to your message -------------

>  Date:  Thu, 17 Feb 2000 15:43:40 +0200
>  To:  "J. W. Ballantine" <jwb@homer.att.com>
>  From:  Ruslan Ermilov <ru@ucb.crimea.ua>
>  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

>  
>  -- 
>  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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200002171400.JAA20528>