Root shell in /etc/passwd is corrupted

I accidentally changed root shell from /bin/bash to bash in /etc/password, then logged out from root. Now I can't login as root and got "No shell" error, although I have root password. "su -f -s /bin/bash" command does NOT work. There is no GUI interface for this system.

My question: Do I have to reboot the system to single user mode to fix the problem?

Thank you in advance!

Aren't you missing a '/' here?

There is only "bash" in the position of "/bin/bash".

su -f -s /bin/bash does not work. Sorry I missed the "/".

Can you reboot your machine or it's not an option?

If you can - boot it with option init=/bin/bash
Then change your shell to proper one.

Regards,
-Artur.

Can you login as a normal user and just issue "su" (with no parameters)?
Post withdrawn: Sorry, my mistake that will not work.

Artur's suggestion, if doable, is the best option available IMHO.

Lo�c.

Some more details please. Thanks a lot!

I am surprised no one suggested using the CD's and booting into rescue mode, mounting the file system and make the needed changes to use /bin/bash.