Originally Posted by asemani
I work with a text mode debian6.0 and when I was testing some commands, I changed default shell to ash. system replied that it has not ash shell.so I thought the shell did not change.
but when I start the system again and enter root password, I see a message like "can not execute ash. No such file or directory" and then system return to login page again. root is the only user on that system. so what should I do?
I believe this would work:
1. boot into linux using systemrescuecd or a gentoo cd or some other such tool.
2. mount the root filesystem
3. edit the /etc/passwd file (within the mounted partition). There should be a root entry. change the last part of it from /bin/ash to /bin/bash
4. reboot back into your normal system
I'm assuming you know how to do all the above, but let me know if you have any questions.