1

I've switched my bash to zsh in root using chsh -s /usr/bin/zsh root

After when I change back to bash, I type the wrong path: chsh -s /usr/bin/bash root

Now I cannot enter root and I get this prompt, how can I reset it?

user@ip:~$ sudo su
Cannot execute /usr/bin/bash: No such file or directory
1

Type the following->

sudo -s

Enter your admin password. The prompt should now end in #. Enter->

chsh -s /bin/sh root

and exit the "root" shell and test.

  • Running sudo chsh -s /bin/sh root should work as well. – nohillside Jun 11 at 17:49

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .