Date: Wed, 26 May 1999 13:56:41 -0400 From: "James A. Mutter" <jm7996@devrycols.edu> To: Alfred Perlstein <bright@rush.net>, ". ." <corinthian420@hotmail.com> Cc: freebsd-questions@FreeBSD.ORG Subject: Re: why we don't mess with root's shell: Re: Need help with Root shell? Message-ID: <3.0.5.32.19990526135641.007c09f0@devrycols.edu> In-Reply-To: <Pine.BSF.3.96.990526130557.9491o-100000@cygnus.rush.net> References: <19990526160034.39939.qmail@hotmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
At 01:11 PM 5/26/99 -0500, Alfred Perlstein wrote: >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 > If noone's mentioned this yet, /bin/bash is a "linux only" thing. It doesn't exist on FreeBSD, it doesn't exist on NetBSD, it doesn't exist on OpenBSD. It doesn't exist on _any_ Sun box, it doesn't exist on _any_ IBM box, it doesn't exist on _any_ Digital box. To put it bluntly, it doesn't exist anywhere but Linux. That's what they get for not following standards! 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?3.0.5.32.19990526135641.007c09f0>