From owner-freebsd-questions@FreeBSD.ORG Wed Mar 4 05:01:28 2009 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 2A2D7106564A for ; Wed, 4 Mar 2009 05:01:28 +0000 (UTC) (envelope-from bryant.eadon@gmail.com) Received: from yw-out-2324.google.com (yw-out-2324.google.com [74.125.46.28]) by mx1.freebsd.org (Postfix) with ESMTP id D37CF8FC16 for ; Wed, 4 Mar 2009 05:01:27 +0000 (UTC) (envelope-from bryant.eadon@gmail.com) Received: by yw-out-2324.google.com with SMTP id 2so1740517ywt.13 for ; Tue, 03 Mar 2009 21:01:26 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:reply-to :user-agent:mime-version:to:cc:subject:references:in-reply-to :content-type:content-transfer-encoding; bh=jmPwauogkK8uPdKYuMZSRWP0c/rHnRqRw9ju35Dyx4Y=; b=u/6j2kL7OnlZ5uogtCePE3nM47YYiog7oNYKRditlo8SumlQgtjpbYYyi2XkphU0p7 LEaldajNdqIFXgPc05GOzM0kZ103dGT8AvthLTFbE3eN0M48+chmbeJF/aZlAvuozrwj SBZNCRGFIRmw/S6RIpfjZenNG7pvOzMtzRkH0= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:reply-to:user-agent:mime-version:to:cc:subject :references:in-reply-to:content-type:content-transfer-encoding; b=PMONizJGSM3qLJh3ipGO8gsRFm0DKZbTQvH99h0zmUQTJVwsa3WpnnnXZXrH5u4yTn QqOqFYsK/Igf0gFoPK+b2lmgvMTipbzBu4abl4VVIxa0KDwzubzbCkiSE2pQYcjG1XGq Pm0kg20jpEpPsNA7HJWmQldJgLHjeuN235KVk= Received: by 10.150.122.18 with SMTP id u18mr1591673ybc.20.1236142886781; Tue, 03 Mar 2009 21:01:26 -0800 (PST) Received: from ?192.168.1.4? (itsf207.itsnpt.com [64.119.85.207]) by mx.google.com with ESMTPS id n26sm19184252ele.2.2009.03.03.21.01.26 (version=TLSv1/SSLv3 cipher=RC4-MD5); Tue, 03 Mar 2009 21:01:26 -0800 (PST) Message-ID: <49AE0B1F.7000704@gmail.com> Date: Wed, 04 Mar 2009 00:01:19 -0500 From: Bryant Eadon User-Agent: Thunderbird 2.0.0.19 (Windows/20081209) MIME-Version: 1.0 To: lacalling References: <49AE0A42.8010506@gmail.com> In-Reply-To: <49AE0A42.8010506@gmail.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-questions@freebsd.org Subject: Re: I cannot login coz bash is deinstalled X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: bryant.eadon@gmail.com List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 04 Mar 2009 05:01:28 -0000 Bryant Eadon wrote: > lacalling wrote: >> I forget to change shell before I deinstalled bash. >> A errer occurs when i try to login with my user or root. And it >> returns to >> login. >> >> I can only login in with single user mode which freebsd proovide, but few >> tools are provided. >> >> How can I change my shell to sh without logining? >> >> I have a debian cd which can bring me to its shell,but when i mount >> /dev/hda >> ,it says no such device. >> >> Thanks. > > Have you tried 'chsh -s /bin/sh' ? > mount /usr, it's in /usr/bin/chsh by default. > > This is one of the reasons to leave the root shell at a safe default. > Alternatively, a different super-user account could be created to avoid > this problem -- leaving root with it's mostly stock (safe) setup. > I should note that you'll need to be logged in as single user. And according to the man pages it should go something like this : /usr/bin/chsh -s /bin/sh root (not tested)