Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 17 Nov 1998 16:53:08 -0500 (EST)
From:      Spike Gronim <spork@pigstuy.dyn.ml.org>
To:        Alex Knowles <alex@targeting.co.uk>
Cc:        "Questions (E-mail)" <questions@FreeBSD.ORG>
Subject:   Re: I can't believe I am soo stupid
Message-ID:  <Pine.BSF.3.96.981117165122.274B-100000@PigStuy.dyn.ml.org>
In-Reply-To: <615CAC0140CED111AF1500805FEDDB8A094AE8@ns.new-mediacom.co.uk>

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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.3.96.981117165122.274B-100000>