on Sun, Dec 10, 2000 at 10:28:13PM -0500, John Anderson ([EMAIL PROTECTED]) wrote:
> I switched root's shell to /bin/ksh instead of /usr/bin/ksh and now I > cannot switch into root user. I have tried telling su to use bash, but it > keeps on saying "no shell" or the like. > > Any suggestions would be appreciated. -:) Um. How about "don't do that!"? ;-) I just played with a few obvious trix, there's some hope you can restore without rebooting. I'd tried: - Use specified shell rather than /etc/passwd. This doesn't work: $ su -s /bin/bash - ssh into the system and use another shell. This doesn't work: $ ssh [EMAIL PROTECTED] $ ssh [EMAIL PROTECTED] /bin/bash - sudo. If you'd previously configured it, this is an option. If you haven't, it's too late to do it now. $ sudo /bin/bash - sashroot. If you've got this account configured: $ su - sashroot ...should give you a stand-alone shell. Password is same as root by default. If all of these fail, boot your system: - on a boot floppy (Debian rescue, Tom's Root/Boot - specifying a login shell rather than init ...and edit /etc/passwd putting in a legitimate shell. TEST THE SHELL YOU'VE SPECIFIED IN /ETC/PASSWD BEFORE YOU QUIT THE ROOT SESSION YOU'D USED TO MODIFY IT. IF IT DOESN'T WORK, FIX IT ***NOW***. Cheers. -- Karsten M. Self <kmself@ix.netcom.com> http://www.netcom.com/~kmself Evangelist, Zelerate, Inc. http://www.zelerate.org What part of "Gestalt" don't you understand? There is no K5 cabal http://gestalt-system.sourceforge.net/ http://www.kuro5hin.org
pgpjKzxGqwO2l.pgp
Description: PGP signature