From owner-freebsd-questions Tue Oct 12 2:36:30 1999 Delivered-To: freebsd-questions@freebsd.org Received: from axl.noc.iafrica.com (axl.noc.iafrica.com [196.31.1.175]) by hub.freebsd.org (Postfix) with ESMTP id 20FE514E2D for ; Tue, 12 Oct 1999 02:36:24 -0700 (PDT) (envelope-from sheldonh@axl.noc.iafrica.com) Received: from sheldonh (helo=axl.noc.iafrica.com) by axl.noc.iafrica.com with local-esmtp (Exim 3.037 #1) id 11ayLt-000P51-00; Tue, 12 Oct 1999 11:36:13 +0200 From: Sheldon Hearn To: Hayden Katzenellenbogen Cc: freebsd-questions@FreeBSD.ORG Subject: Re: root shell In-reply-to: Your message of "Tue, 12 Oct 1999 11:26:11 +0200." <3802FEB3.CFBA97B4@tudogs.com> Date: Tue, 12 Oct 1999 11:36:13 +0200 Message-ID: <96408.939720973@axl.noc.iafrica.com> Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Tue, 12 Oct 1999 11:26:11 +0200, Hayden Katzenellenbogen wrote: > I mistakenly changed the root's shell in the passwd file and I put in > the wrong path. Now I can no longer su you to root or ssh in either. How > do I get the right path in or get a default shell to come up. This would be easier to answer if you mentioned which version of FreeBSD you are using. :-) You need to boot into single-user mode. This allows you to specify which shell you want root to use. Then you need to mount your filesystems and use vipw or chsh to change your root shell. To boot into single-user mode: 3.1-RELEASE and earlier: At the boot prompt, type ``-s'' and press enter. 3.2-RELEASE or later: At the boot prompt, type ``boot -s'' and press enter. To mount your filesystems: mount -a To change root's shell: Either vipw or chsh Ciao, Sheldon. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message