Date: Mon, 22 Dec 1997 17:09:23 -0500 (EST) From: "Joe \"Marcus\" Clarke" <jmcla@ocala.cs.miami.edu> To: Javier Henderson <javier@Kjsl.com> Cc: freebsd-questions@FreeBSD.ORG Subject: Re: Shooting yourself in the foot Message-ID: <Pine.SGI.3.96.971222170622.14913A-100000@ocala.cs.miami.edu> In-Reply-To: <199712222136.NAA29600@kjsl.com>
next in thread | previous in thread | raw e-mail | index | archive | help
The way I fixed this when I did something similar was to take the system down to single user mode, `shutdown now`, then remount / as read/write, mount -u /, then edit /etc/shells to allow for /bin/false as a valid shell. Bring the system back up to multi-user and login as a user allowed to su to root. Then su to root using su -m, you should be able to issue a chsh root then. If you have no ther users in wheel, then instaed of editing /etc/shells, use vipw to edit the password file and change roots shell back to something else. Joe Clarke On Mon, 22 Dec 1997, Javier Henderson wrote: > So, let's say that you changed the root shell to > /bin/false, which I successfully did. > > How do you fix this? Doing "su", of course, does > nothing useful right now... >
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.SGI.3.96.971222170622.14913A-100000>