Bob Bernstein <poo...@ruptured-duck.com> writes: > There's a long back-story to this event, but it's not important. > > Suffice to say that I removed all the packages from my system, > including the shell I like at /usr/pkg/bin/tcsh, and now all my > attempts to login are rejected because the shell cannot be found. > > Is there a work-around?
1) remember the root password and log in as root on the console. If you changed the root shell away from /bin/sh, see step 2 but do not change it ever again. 2) boot single user, by hitting space during the countdown and "boot -s". hit return for sh. Once there, type "fsck -p" to fix any issues. Then "mount -a". Then put back the shell with pkg_add, or use vipw to change your shell back to /bin/sh.