Subject: Re: chsh accident
To: None <bambang@opensource.3wsi.net>
From: Samuel Hornus\[Isobel\] <Samuel.Hornus@crans.org>
List: netbsd-help
Date: 06/25/2001 12:55:52
On Mon, 25 Jun 2001 bambang@opensource.3wsi.net wrote:

> On Mon, Jun 25, 2001 at 11:25:15AM +0200, Martin Weber wrote:
>
> > > I accidentally change shell for root with unappropriate shell location. As
> > > a result I can not login to my NetBSD box as root. I have read some
> > > documentation and also tried to boot in single user mode, but it doesn't
> > > work because the file system is read only.
> > >
> > > Any other way than reinstall my NetBSD box :( ?
> > After you booted into single-user you can mount -o rw / ;)
> >
> > Martin Weber
>
> Thanks. It works. I edit /etc/passwd and /etc/master.passwd manually and change the wrong part. I tried to login again but NetBSD still remember the wrong location.
>
> Any file(s) which should I edit again?

why not using vipw ?

-- 
Samuel.