Subject: Re: changing root shell hell
To: Jeremy C. Reed <reed@reedmedia.net>
From: Andrew Brown <atatat@atatdot.net>
List: netbsd-help
Date: 12/29/2003 09:30:46
>> I'm a NetBSD newbie and it appears that I've made a very stupid
>> mistake. I accidentally changed root's shell to an invalid shell using
>> chpass and now I'm unable to su to root.
>
>su -m root -c "chsh"
>
>or
>
>su -m root -c "chsh -s /bin/csh"
unless his non-standard shell actually takes arguments like that and
does the right thing with them, that may not work. su just passes
extra arguments directly to the invoked shell.
--
|-----< "CODE WARRIOR" >-----|
codewarrior@daemon.org * "ah! i see you have the internet
twofsonet@graffiti.com (Andrew Brown) that goes *ping*!"
werdna@squooshy.com * "information is power -- share the wealth."