From owner-freebsd-questions Wed Oct 20 6:22: 5 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 5A3721B609 for ; Wed, 20 Oct 1999 06:21:57 -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.040 #1) id 11dvgQ-0006d6-00; Wed, 20 Oct 1999 15:21:38 +0200 From: Sheldon Hearn To: marcus@kbinirsnb.be Cc: freebsd-questions@FreeBSD.ORG Subject: Re: lost root shell (silly isn't it?) In-reply-to: Your message of "Wed, 20 Oct 1999 15:01:50 +0200." <99102015133703.00326@px20_115.kbinirsnb.be> Date: Wed, 20 Oct 1999 15:21:38 +0200 Message-ID: <25487.940425698@axl.noc.iafrica.com> Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Wed, 20 Oct 1999 15:01:50 +0200, Marc Dubrowski wrote: > Can I start my computer in single user mode (and how?) and how to vipw > from there ? You'd be flamed for asking an FAQ if the FAQ happened to provide up-to-date information about this problem. ;-) 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