From owner-freebsd-questions Fri Feb 22 3: 1:50 2002 Delivered-To: freebsd-questions@freebsd.org Received: from rambo.simx.org (rambo.simx.org [194.17.208.54]) by hub.freebsd.org (Postfix) with ESMTP id C30E237B400 for ; Fri, 22 Feb 2002 03:01:43 -0800 (PST) Received: from rambo.simx.org (rocky [192.168.0.2]) by rambo.simx.org (8.11.6/8.11.6) with ESMTP id g1MB1bZ96440; Fri, 22 Feb 2002 11:01:37 GMT (envelope-from listsub@rambo.simx.org) Message-ID: <3C76250C.40700@rambo.simx.org> Date: Fri, 22 Feb 2002 12:01:32 +0100 From: "Roger 'Rocky' Vetterberg" User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:0.9.4) Gecko/20011128 Netscape6/6.2.1 X-Accept-Language: en-us MIME-Version: 1.0 To: mess-mate Cc: freebsd-questions-en Subject: Re: shell References: <20020222105518.540E517F07@postfix3-2.free.fr> Content-Type: text/plain; charset=ISO-8859-15; format=flowed Content-Transfer-Encoding: 7bit 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 mess-mate wrote: >Hello all, >I did a mistake when chaning my shell. >Did a chsh and would change chsh to bash in vi. >Vi is not my favorite editer. >So an escape : w must write the changes, isn't. >Something goes wrong and now I'm without a shell and can no more >login as ROOT . >No su as user (wheel permission) also of course. >Is ther any way to restore my shell ? >Thanks in advance. > You could try booting to sinle user mode. I know that if you boot to single user mode and root's shell is on a partition that is not mounted, it says somethine like "Enter full path of shell or press enter for /bin/sh". Press enter and you will get sh, that should allow you to change your shell back to whatever you want. -- R > To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message