Subject: Re: chsh accident
To: None <bambang@opensource.3wsi.net>
From: Chris Pinnock <cjep@fawlty.net>
List: netbsd-help
Date: 06/25/2001 18:20:35
On Mon, Jun 25, 2001 at 03:30:38PM +0700, bambang@opensource.3wsi.net wrote:
> 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

One thing to add here: Between 1 and 2 you might want to "fsck" your
file systems, especially if the machine was not shut down cleanly. IIRC,
you don't need 2, as 3 should do everything including /

best wishes,
-- 
Chris