Subject: Re: chsh accident
To: Samuel Hornus\[Isobel\] <Samuel.Hornus@crans.org>
From: None <bambang@opensource.3wsi.net>
List: netbsd-help
Date: 06/25/2001 15:30:38
On Mon, Jun 25, 2001 at 04:58:12PM +0200, Samuel Hornus[Isobel] wrote:
> > >
> > > You have to execute pwd_mkdb(8) after editing master.passwd manually.
> > > If you use vipw(8), vipw(8) execute pwd_mkdb automatically.
> >
> > The problem maybe will solved if I have complete tools on my machine,
> > but when I turn to single user, all of /usr dissapeared. Is this the
> > default which can not be changed?
> 
> Well I am sure you can mount /usr manually
> or automatically using mount -a.
> and then use vipw.
> 
> -- 
> Samuel.
>
It works!. Thanks to you all who have replied my e-mail.
FYI, this is the steps which has to be done if we (accidently) change shell of root into wrong shell/location:

1. Boot single mode (using -s).
2. Mount file system into r/w mode: mount -o rw /
3. Mount /usr: mount -a
4. do chsh
5. reboot

Thanks.

--
bpdp