Changing user's default shell to new shell in linux

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


Popular posts from this blog

How to disable USB ports on Mac OS X Mavericks, Yosemite or El Capitan ?