Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 3 Oct 2000 21:10:11 -0300
From:      "Matt Rudderham" <matt@researcher.com>
To:        "Loren Koss" <loren@pciway.com>, <freebsd-questions@freebsd.org>
Subject:   RE: I deleted my shell by mistake!!
Message-ID:  <NDBBLEKOOLGIBFPGLFEKAEGECEAA.matt@researcher.com>
In-Reply-To: <Pine.BSF.4.21.0010031654110.35573-100000@unix.pciway.com>

next in thread | previous in thread | raw e-mail | index | archive | help
>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!!!
>
>Thanks
>Loren

You ain't screwed. Try

chsh root

assuming you are logged in as root or su'd. I assume restoring the shell
from ports
(/usr/ports/shells/tcsch) should restore your shell.
- Matt



To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?NDBBLEKOOLGIBFPGLFEKAEGECEAA.matt>