From owner-freebsd-questions Tue Nov 17 13:26:54 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id NAA17530 for freebsd-questions-outgoing; Tue, 17 Nov 1998 13:26:54 -0800 (PST) (envelope-from owner-freebsd-questions@FreeBSD.ORG) Received: from gershwin.tera.com ([207.224.230.28]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id NAA17520 for ; Tue, 17 Nov 1998 13:26:53 -0800 (PST) (envelope-from kline@tera.com) Received: from athena.tera.com (athena.tera.com [207.224.230.169]) by gershwin.tera.com (8.8.8/8.8.8) with ESMTP id NAA19638; Tue, 17 Nov 1998 13:26:11 -0800 (PST) From: Gary Kline Received: (from kline@localhost) by athena.tera.com (8.7.5/8.7.3) id NAA27656; Tue, 17 Nov 1998 13:25:57 -0800 (PST) Message-Id: <199811172125.NAA27656@athena.tera.com> Subject: Re: I can't believe I am soo stupid In-Reply-To: <3651D3E5.4BF43F7D@aei.ca> from Malartre at "Nov 17, 98 02:52:05 pm" To: malartre@aei.ca (Malartre) Date: Tue, 17 Nov 1998 13:25:53 -0800 (PST) Cc: kline@tera.com, alex@targeting.co.uk, questions@FreeBSD.ORG X-Mailer: ELM [version 2.4ME+ PL23 (25)] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG According to Malartre: > Gary Kline wrote: > > > > According to Alex Knowles: > > [Charset iso-8859-1 unsupported, filtering to ASCII...] > > > 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 > > > > > > Shutdown and reboot the system. Bring it up in single-user > > mode by typing ``-b'' at the > > > > boot: > > > > prompt. > > > > There is a more detailed explaination in the Answerman column > > of Daemon News a month or so ago. > > > > gary kline. > > > It's "-s" I think, not "-b". > Also, to edit the password file, I think you need to run "vipw". Hm, well I was _thinking_ -s! THanks for catching this. Yes on vipw. Also, if the system is just power-cycled the filesystems will not be marked clean and need to be fsck'd. Then mounted. gary To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message