From owner-freebsd-questions Tue Jun 5 14:30:33 2001 Delivered-To: freebsd-questions@freebsd.org Received: from courier.netrail.net (courier.netrail.net [205.215.10.53]) by hub.freebsd.org (Postfix) with ESMTP id 1826637B405 for ; Tue, 5 Jun 2001 14:30:29 -0700 (PDT) (envelope-from cschreiber@netrail.net) Received: by courier.netrail.net (Postfix, from userid 5408) id 63283119; Tue, 5 Jun 2001 17:30:28 -0400 (EDT) Date: Tue, 5 Jun 2001 17:30:28 -0400 From: "Christian S ." To: Bud Roth Cc: questions@freebsd.org, Gary Nye Subject: Re: hacked /etc/passwd and can't reboot Message-ID: <20010605173028.E753@netrail.net> References: <3B1D495A.223E1EE1@consys.com> <20010605212017.45515.qmail@web10004.mail.yahoo.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <20010605212017.45515.qmail@web10004.mail.yahoo.com>; from bud_roth@yahoo.com on Tue, Jun 05, 2001 at 02:20:17PM -0700 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 Look into booting in single-user mode, (As if you were rebuilding the kernel (boot -s from the boot menu)), and mount the drives in read/write mode, and then "chfn root", or vipw should do it as well.. Good luck! On Tue, Jun 05, 2001 at 02:20:17PM -0700, Bud Roth babbled: > Delivered-To: cschreiber@netrail.net > Delivered-To: freebsd-questions@freebsd.org > Date: Tue, 5 Jun 2001 14:20:17 -0700 (PDT) > From: Bud Roth > Subject: hacked /etc/passwd and can't reboot > To: questions@freebsd.org > > I wanted FreeBSD to boot into bash, not sh, so I > changed the default shell for the two users on my > system (bud and root) in the file /etc/passwd from > /bin/sh to /bin/bash. Stupid me. Either bash is not > in /bin or it just won't work. The result is that I > cannot log in. How can I either reboot off of a > floppy and edit passwd to take out the offensive "ba" > or use the command prompt that FreeBSD temporarily > gives me when booting up to do the same? > > Silly mistake on my part, I confess. 8-( ---end quoted text--- -- Christian Schreiber, Netrail Network Security Engineer - Ape will not kill Ape To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message