Kurinchi Blogger Scribbles …


Posts Tagged ‘linux default shell’

Jun 22
2009

Linux: How to set the default shell?

Last updated: June 24th, 2009

How to set the default shell?

If you want to set a shell as a the default for all users you can set the SHELL variable

$ sudo vi ~/.bashrc

export SHELL=/bin/bash

To change the default shell for a specific user you can either use the following command
$ usermod -s /path/to/shell user_a

or, set the shell in the /etc/passwd file by changing the last column which represents the default shell for that user

user_a:x:1001:1001::/home/user_a:/bin/sh

Read more about the Linux shell


Valid HTML 4.01 Strict  Valid HTML 4.01 Strict