Subject: Re: Dumb error locking me out of root
To: Tim McNamara <timmcn@bitstream.net>
From: Tom Jernigan <jernigantc@ornl.gov>
List: port-mac68k
Date: 02/03/2004 19:39:13
You can try su -m, which uses the shell you're in. I assume it'll 
work even if the root shell is screwed up.
Tom

At 7:06 PM -0600 2/3/04, Tim McNamara wrote:
>I managed to screw up root already, doing
>
>chsh -s usr/pkg/bin/bash root
>
>which of course doesn't exist (no leading "/").  When I log in to 
>root or su to root, I am immediately sent back to "login:"  or back 
>to my user prompt since root doesn't have a valid shell.
>
>Do I have to reboot in single user mode to fix this, or is there a 
>way to correct this within NetBSD as it is currently running?


-- 
Tom Jernigan, Oak Ridge National Laboratory
Presently at General Atomics, San Diego, California (858) 455-4122