Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 26 May 1999 13:11:47 -0500 (EST)
From:      Alfred Perlstein <bright@rush.net>
To:        ". ." <corinthian420@hotmail.com>
Cc:        freebsd-questions@FreeBSD.ORG
Subject:   why we don't mess with root's shell: Re: Need help with Root shell?
Message-ID:  <Pine.BSF.3.96.990526130557.9491o-100000@cygnus.rush.net>
In-Reply-To: <19990526160034.39939.qmail@hotmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Wed, 26 May 1999, . . wrote:

WOOT! Yet another reason why not to change root's shell!

> Please Help.
> I dont know what I did, my BSD box has not been rebooted in a while so it 
> could have been anything in the past few weeks! The last thing I was doing 
> was adding users. But now I can not log in as root! I get an error
> "login: /bin/bash [-login]: no such file or directory
> 
> I have no idea how that [-login] got in there but I suspect that has 
> something to do with it. .I tried to remove it from /etc/passwd but ofcourse 
> I have to be SU to do that and I can not SU for the same reason I can not 
> get root.
> 
> Obviously I am fairly new at this... but any help would be appreciated! 
> thanks in advance

Don't change root's shell to anything else.
meanwhile try this:

su root -c /bin/sh

then to change your shell back to "sh" like god inteneded:

chsh

good luck,
-Alfred



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.990526130557.9491o-100000>