Change default shell in linux
login in as root
modify /etc/profile
add "export SHELL = /usr/bin/bash"
then modify /etc/passwd
find the line with "sh" as the ending
then replace the path as /usr/bin/bash
modify /etc/profile
add "export SHELL = /usr/bin/bash"
then modify /etc/passwd
find the line with "sh" as the ending
then replace the path as /usr/bin/bash
Comments