From owner-freebsd-questions Mon Apr 29 9:41:58 2002 Delivered-To: freebsd-questions@freebsd.org Received: from icarus.slightlystrange.org (icarus.slightlystrange.org [62.190.193.173]) by hub.freebsd.org (Postfix) with ESMTP id 81D2637B400 for ; Mon, 29 Apr 2002 09:41:52 -0700 (PDT) Received: from danielby by icarus.slightlystrange.org with local (Exim 3.12 #1 (Debian)) id 172EDi-0006sf-00 for ; Mon, 29 Apr 2002 17:41:46 +0100 Date: Mon, 29 Apr 2002 17:41:46 +0100 From: Daniel Bye To: FreeBSD Mailing List Subject: Re: locked myself out of my FreeBSD 4.5 server Message-ID: <20020429164146.GA26051@icarus.slightlystrange.org> Reply-To: dan@slightlystrange.org Mail-Followup-To: FreeBSD Mailing List References: <20020429162946.25509.qmail@adrastea.arcticbears.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20020429162946.25509.qmail@adrastea.arcticbears.com> User-Agent: Mutt/1.3.27i Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Mon, Apr 29, 2002 at 09:29:46AM -0700, Joe Sotham wrote: > Ooops, I forgot to install .../ports/.../bash2 before changing the login > shell for root and my user id. . STUPID,STUPID, STUPID! BAD DOG! > Oops indeed... ;-) > Now when I try to log in at the console I get ...no valid shell message and > booted off the system > > I've tried booting to single user mode and fixing the passwd file...I get / > mounted ro. I don't have disk #2. I am not sure what the next step is. Boot single user as you did previously, then do this: mount -u -w / This remounts / read/write. You can then go and repair /etc/passwd. There was some other unfortunate soul on here earlier who did very similar. The lesson for today would seem to be "leave root's shell alone!" And don't do it again! ;-) Dan To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message