From owner-freebsd-questions Tue Nov 17 13:54:26 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id NAA21745 for freebsd-questions-outgoing; Tue, 17 Nov 1998 13:54:26 -0800 (PST) (envelope-from owner-freebsd-questions@FreeBSD.ORG) Received: from PigStuy.dyn.ml.org (nyc-ny69-25.ix.netcom.com [209.109.226.89]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id NAA21642 for ; Tue, 17 Nov 1998 13:54:10 -0800 (PST) (envelope-from spork@pigstuy.dyn.ml.org) Received: from localhost (spork@localhost) by PigStuy.dyn.ml.org (8.8.8/8.8.7) with SMTP id QAA00455; Tue, 17 Nov 1998 16:53:09 -0500 (EST) (envelope-from spork@pigstuy.dyn.ml.org) Date: Tue, 17 Nov 1998 16:53:08 -0500 (EST) From: Spike Gronim Reply-To: sporkl@ix.netcom.com To: Alex Knowles cc: "Questions (E-mail)" Subject: Re: I can't believe I am soo stupid In-Reply-To: <615CAC0140CED111AF1500805FEDDB8A094AE8@ns.new-mediacom.co.uk> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Tue, 17 Nov 1998, Alex Knowles wrote: > doh, > I have just locked myself out of my bsd 3 box > I tried to change the shell that root uses by editing the passwd file and > put in > /usr/bin/tcsh > When i try and log in as root it says that it can't find bin/tcsh > and dumps me back to a login prompt > Please help (preferably kindly!) > thanks alot > Mr Stupid > (alex) I know of two ways to fix this. If you have "sudo" on your system, type "sudo my_favorite_editor /etc/passwd" and change root's shell to /usr/local/bin/tcsh, which is where tcsh usually gets installed to. Or, you can boot to single-user mode (the -s option at boot time) and hit enter when it asks you for a shell. Then you can edit /etc/passwd and reboot the system. -Spike Gronim sporkl@ix.netcom.com The majority only rules those who let them. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message