Date: Fri, 22 Feb 2002 12:01:32 +0100 From: "Roger 'Rocky' Vetterberg" <listsub@rambo.simx.org> To: mess-mate <messmate@free.fr> Cc: freebsd-questions-en <freebsd-questions@FreeBSD.ORG> Subject: Re: shell Message-ID: <3C76250C.40700@rambo.simx.org> References: <20020222105518.540E517F07@postfix3-2.free.fr>
next in thread | previous in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?3C76250C.40700>