On Tue, Jun 27, 2000 at 04:21:16PM +1200, Frank van der Hulst wrote: > Help!!! > > I just installed Debian GNU/Linux, everything was going well. > > Then I decided I'd change the shell for root to the C shell. So I used > emacs to change the /etc/passwd entry for root, so that root's shell is > /bin/tcsh > > Then, I found that tcsh isn't in the /bin directory! And I've logged out > from the only session where I had root access. So I can't get root > access. Is there a way to login as root, and specify the shell to run? > > Or any other way to copy/link a shell to /bin/tcsh ? Or to edit the > /etc/passwd file? Or to copy the /etc/passwd~ file to /etc/passwd?
if you have a normal account that is still working just run: /bin/su -s /bin/bash and enter the root password that will use /bin/bash instead of the shell in /etc/passwd. then run chsh to fix the shell. -- Ethan Benson http://www.alaska.net/~erbenson/
pgpZtNBrjlQSC.pgp
Description: PGP signature