Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 19 Apr 1998 13:08:24 -0400 (EDT)
From:      Spike Gronim <spork@cncn.com>
To:        emk <emk@depeche-mode.com>
Cc:        freebsd <questions@FreeBSD.ORG>
Subject:   Re: can't log in as root  -- please help
Message-ID:  <Pine.BSF.3.96.980419130600.390A-100000@pigstuy>
In-Reply-To: <353A2E88.4A605EB@depeche-mode.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Sun, 19 Apr 1998, emk wrote:

> hello everyone..
> 
> call it beginner's bad luck but i made a booboo last night.  i changed
> the default shell for root to tcsh instead of csh.  i *thought* i had
> tcsh installed on my machine but unfortunately..  it is not.  so now
> when i try to log in as root, it says: "/bin/tcsh does not exist" hence
> i can't login.  after that message, i'm faced with the login prompt
> again.  i tried using one of my other accounts and changing it to
> superuser but i get the same error and can't change to superuser.
> 
> do i need to re-install freebsd?  my version is freebsd 2.2.5
> 
> thanks
> 
> Metin

DONT REINSTALL! You don't need to. 

Reboot the computer.
At the "boot:" prompt type "-s"
When it says "Type shell path or enter for sh" Or sometihng similar, type
enter.
type "fsck /" "mount -w /" "fsck /usr" "mount -w /usr"
then, type chfn and change your shell to a valid one. 


	-Spike Gronim
	 spork@cncn.com	


		"Hacker, n: One who hacks real good"
			--Computer Contradictionary


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?Pine.BSF.3.96.980419130600.390A-100000>