From owner-freebsd-questions Wed May 26 10:51:58 1999 Delivered-To: freebsd-questions@freebsd.org Received: from cygnus.rush.net (cygnus.rush.net [209.45.245.133]) by hub.freebsd.org (Postfix) with ESMTP id 993AB15682 for ; Wed, 26 May 1999 10:51:47 -0700 (PDT) (envelope-from bright@rush.net) Received: from localhost (bright@localhost) by cygnus.rush.net (8.9.3/8.9.3) with SMTP id NAA19289; Wed, 26 May 1999 13:11:48 -0500 (EST) Date: Wed, 26 May 1999 13:11:47 -0500 (EST) From: Alfred Perlstein To: ". ." Cc: freebsd-questions@FreeBSD.ORG Subject: why we don't mess with root's shell: Re: Need help with Root shell? In-Reply-To: <19990526160034.39939.qmail@hotmail.com> 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 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