On Thu, Nov 08, 2007 at 07:12:25PM -0800, new_guy wrote: > Somehow as root, I changed my shell to a non-existent shell '/bin/tcsh' on > OpenBSD 4.2 > > When I try to su, I get this error: > su: /bin/tcsh: No such file or directory > > I can't login as root, ssh in as root or su to root. I'm not in the sudoers > file (but I am in the wheel group) so I can't sudo chsh for root. Any > suggestions. I just set the box up today. It's been years since I used > OpenBSD. I'm a bit rusty and duller than I once was :)
No problem. Put in the boot media you used to install OpenBSD and boot with it. At the (U)pgrade, (I)nstall, (S)hell prompt type 's' for shell. Next, you can "really" fix the problem. Maybe someone else will tell you how. I'm going to tell you the first short way that comes to mind... # mount /dev/wd0a /mnt # cd /mnt/bin # cp ksh tcsh # echo /bin/tcsh >> /mnt/etc/shells <eject boot media> # reboot <login and fix your shell to be one of the installed ones> # rm /bin/tcsh -- Darrin Chandler | Phoenix BSD User Group | MetaBUG [EMAIL PROTECTED] | http://phxbug.org/ | http://metabug.org/ http://www.stilyagin.com/ | Daemons in the Desert | Global BUG Federation

