From owner-freebsd-questions Tue Oct 3 17:36:31 2000 Delivered-To: freebsd-questions@freebsd.org Received: from snowy.org (snowy.org [203.37.251.14]) by hub.freebsd.org (Postfix) with ESMTP id C9B0737B66E for ; Tue, 3 Oct 2000 17:36:26 -0700 (PDT) Received: from localhost (snowy@localhost) by snowy.org (8.11.0/8.11.0) with ESMTP id e940aLT48590; Wed, 4 Oct 2000 10:36:21 +1000 (EST) (envelope-from snowy@snowy.org) Date: Wed, 4 Oct 2000 10:36:21 +1000 (EST) From: Sleepless in Brisbane To: Loren Koss Cc: freebsd-questions@FreeBSD.ORG Subject: Re: I deleted my shell by mistake!! In-Reply-To: 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, 3 Oct 2000, Loren Koss wrote: > Thats the problem.. I don't.. I have my regular user shell still > open.. I can't SU to root anymore.. I think i've learned my lesson about > changing roots shell!! Any other suggestions?? Is it gonna be a problem > even when I go to the console? How about rebooting into single user > mode? Am I totally F*cked??? > > On Wed, 4 Oct 2000, Sleepless in Brisbane wrote: > > > On Tue, 3 Oct 2000, Loren Koss wrote: > > > > > So, I have a current connection that works, but now all new connections > > > are getting declined because somehow (i think it was when i re-cvsuped by > > > source) my /usr/local/bin/tcsh is gone.. so.. now i cant connect because > > > it says the file is gone.. The real stinker is that i made the root shell > > > TCSH as well.. Please tell me there is something I can do.. like somehow > > > executing a command like VI to edit the passwd file and change the shell > > > of this user and root.. Please tell me I aint screwed!!! > > > > As long as you have a root shell still open; you can use the command 'vipw' to > > change your /etc/passwd file. From memory if you boot your BSD box in single use mode ('boot -s' at the boot manager prompt) it is hard-wired to use '/bin/sh'. You could try that, once you get in you just need to do a 'mount -a' before using 'vipw' to change things and then reboot. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message