From: davidsen@ariel.crd.GE.COM (william E Davidsen) Subject: Re: Help! Changed shell on root Date: Tue, 8 Jun 1993 16:12:35 GMT
In article <1993Jun5.013105.1@drycas.club.cc.cmu.edu>, ghod@drycas.club.cc.cmu.edu writes:
| Tsk tsk tsk. And you a Harvard man and all. :) This is a FAQ (as many of us
| are painfully aware :). The surest way to save yourself is to dig out your
| bootable SLS floppy, boot from it, then mount your root hard disk partition
| and edit /etc/passwd so that the path to tcsh is correct (or change the shell
| back to /bin/sh, whichever you prefer).
I don't have a Linux system here to try, but I believe that su uses
/bin/sh by default, unless you use the '-' option to force use of the
login shell and execution of .profile (or cshrc). That's not as high
tech as booting from floppy, of course.
Warning: there are at least two versions of su around, I don't
remember which one is in SLS.
--
bill davidsen, GE Corp. R&D Center; 518-387-6489
Look for a new corporate affiliation, coming to this space soon.