1.The solution provided for changing Bob’s shell from bash to sh using
sudo chsh -s /bin/sh bob
does not emphasize how we determined the path /bin/sh in the first place. This path can be found by listing the valid login shells from the /etc/shells file.
Example:
bob@caleston-lp10:~$ cat /etc/shells
/etc/shells: valid login shells
/bin/sh
/bin/bash
/bin/rbash
/bin/dash
2.After running the sudo chsh -s /bin/sh bob
command to change Bob’s shell to sh, I checked the shell with the following command:
bob@caleston-lp10:~$ echo $SHELL
/bin/bash
The output shows that the shell remains /bin/bash and NOT /bin/sh.
Could you clarify why this change isn’t being applied and suggest any troubleshooting steps?