From owner-freebsd-questions@FreeBSD.ORG Wed Aug 27 08:57:24 2003 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id B035216A4BF for ; Wed, 27 Aug 2003 08:57:24 -0700 (PDT) Received: from remt21.cluster1.charter.net (remt21.cluster1.charter.net [209.225.8.31]) by mx1.FreeBSD.org (Postfix) with ESMTP id DE3F343FF2 for ; Wed, 27 Aug 2003 08:57:23 -0700 (PDT) (envelope-from chowse@charter.net) Received: from [66.168.145.25] (HELO moe) by remt21.cluster1.charter.net (CommuniGate Pro SMTP 4.0.6) with ESMTP id 136274332; Wed, 27 Aug 2003 11:57:18 -0400 From: "Charles Howse" To: "'thomas may'" , Date: Wed, 27 Aug 2003 10:57:11 -0500 Message-ID: <005a01c36cb3$e07d26f0$04fea8c0@moe> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook, Build 10.0.2616 In-Reply-To: <000001c36ca9$70c223b0$8b01a8c0@notebook> X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165 Importance: Normal Subject: RE: no root login after changing shell X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 27 Aug 2003 15:57:24 -0000 > i wanted to change the shell for user root to bash. > in the freebsd online handbook i found this command: >=20 > # echo "/usr/local/bin/bash" >> /etc/shells >=20 >=20 > but what i didnt know at this moment, that i have to install bash > before. > so i logged of as user root and get now on login the following error: >=20 > su: /usr/local/bin/bash: No such file or directory >=20 > can anybody please help me ... > thanx Been there, done that, I sympathize with you. The proper way to have done that would be: Install bash As root, type chsh That will open vi, or your configured editor. Then change the shell line to: /usr/local/bin/bash Alternately, you can, as root, type: Chpass -s /usr/local/bin/bash root This aviods opening vi and the editing I mentioned above. As far as recovering from this problem, I'm kinda a newbie myself, when I did that, I finally re-installed. Maybe someone can point you to the easy way to fix it.