Change shell for a user in linux


To change the shell for a user in linux one can use the usermod command and the “-s” parameter.

usermod -s /bin/csh someuser

Specify whichever shell you like after the -s. This works in both linux and unix environments.