We can change the default shell of a user by using "usermod" command as below.
$ sudo usermod -s "name of the shell" "username"
This command will set the default shell for the username supplied as argument above in the command.
We can also use "chsh" command to change the user default shell as below
$sudo chsh -s /bin/bash/ username
Comments
Post a Comment