Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 20 Dec 2003 23:32:21 -0500
From:      "Scott I. Remick" <scott@sremick.net>
To:        freebsd-questions@freebsd.org
Subject:   Re: bad root shell
Message-ID:  <pan.2003.12.21.04.32.20.822616@sremick.net>
References:  <3FE419F1.7851.51B6193@localhost>

next in thread | previous in thread | raw e-mail | index | archive | help
On Sat, 20 Dec 2003 09:44:17 -0800, Mark McConnell wrote:

> An error in a pw* script inserted a non-existent shell into the password
> database, effectively locking out root.
> 
> I used a fixit disk to correct the problem, using this procedure:

Unless I'm missing something, seems like the long way to do this. Last
time I did this to myself, I did the following:

1) Log in as a user who can su to root.
2) Use su -m to su to root without changing your current shell
3) As root, use chpass -s to change your shell to a working one.

Of course, this won't work if your only account is "root" or you don't
have anyone else in the wheel group, so maybe it doesn't apply to you.



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