I tried to change root's shell with
chsh command, but now I get an error when I try to connect as root with
$ sudo -i
sudo: /usr/bin/bash: command not found
What do I have to modify to get the
Assuming that you have not modified the path or created symlink, the default path to the
bash binary is
The error is occurring because you have set the
root's shell as
You need to change that to
sudo usermod -s /bin/bash root
and make the modifications manually.
You can obviously choose any other shell of your choice, just make sure that the path is correct. A common place to look for shell paths is
/etc/shells file which contains the full paths to all the valid login shells on the system.