Subject: Re: changing root shell hell
To: Nicholas Jackson <nicholasj@ncafe.com>
From: Jeremy C. Reed <reed@reedmedia.net>
List: netbsd-help
Date: 12/26/2003 20:51:29
On Fri, 26 Dec 2003, Nicholas Jackson wrote:

> I'm a NetBSD newbie and it appears that I've made a very stupid
> mistake. I accidentally changed root's shell to an invalid shell using
> chpass and now I'm unable to su to root.

su -m root -c "chsh"

or

su -m root -c "chsh -s /bin/csh"


   Jeremy C. Reed
   http://www.reedmedia.net/