[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: chsh

I did something similar a while back.  You don't necessarily have to
reformat.  If you have a rescue disk, or have access to another computer
to create a rescue disk, use that to boot the machine.  Then use ae to
edit /etc/passwd.  There, you can manually change "chsh --version" back
to whatever shell you want to use (e.g. /bin/bash).  Hope that helps.

Brian J. Stults
Doctoral Candidate
Department of Sociology
University at Albany - SUNY
Phone: (518) 442-4652  Fax: (518) 442-4936
Web: www.albany.edu/~bs7452

Jason Draut wrote:
> I recent was trying to upgrade my kernel and in the Documentation was told
> I need chsh version x.xx.  I tried to check this by typing
> "chsh --version",
> but this gave me an error message.
> I then just typed chsh and get a prompt, so I typed
> "chsh --version",
> again and nothing really happened.  I realized what happened when I tried
> to login again.  Currently, my root user is trying to run the shell
> "chsh --version", and obviously isn't working.  Is there anyway to change
> my login shell back to bash from twm (my Xwindows manager) without opening
> a window?  (when I open a window it just closes after an error message
> about "chsh --version" not being a valid shell or something).
> I'm probably going to have to reformat my "/" partition (separate from
> "/usr" partition), but if anyone has a better idea, please let me know!
> Thanks,
> Jason
> --
> Unsubscribe?  mail -s unsubscribe debian-user-request@lists.debian.org < /dev/null

Reply to: