How to - Change the default shell of a user using chsh
Posted on: 01/17/2011 09:19 AM

Linuxers shows you how to change the default shell of a user using chsh

How to - Change the default shell of a user using chsh


You must have noticed that every time you open a terminal or login in a text console, you get a bash shell. And we don’t remember where was this option asked during the installation, right? The option for a shell is actually one of the user properties just like a user's home directory, password, full name etc. Using chsh command we can change our default shell.

You may be wondering where is this information stored anyway. You can find this info in the /etc/passwd file. The file is readable by everyone. The final attribute in every line is the default shell. As you can see this is /bin/bash in my case.



Printed from Linux Compatible (http://www.linuxcompatible.org/news/story/how_to__change_the_default_shell_of_a_user_using_chsh.html)