Close call with CoLinux

I had a close call with CoLinux. I tried to change my shell as root to /bin/tcsh, but misspelled it to /bn/tcsh. Now I couldnt log in as root to fix it! The only solution, as I found out by googling, was to reboot the image in single user mode (run level 1) and edit the /etc/passwd file manually. The only trouble was, how to run colinux images in runlevel 1? The following is a snippet of code to put in the .conf file that is specified when colinux is started.

cobd0=”c:\coLinux\Debian.ext3″
# boot into single user mode
# cobd0=”c:\coLinux\Debian.ext3″ 1

whew! The lesson learned is to not change root’s default shell!

 

Comments are closed.