How to change the Solaris Shell to Bash

“sh is a command language described by the POSIX standard. It has many implementations (ksh88, dash, …). bash can also be considered an implementation.

Another point of view on bash is that it is a separate language, a dialect of sh. Indeed it supports huge number of features beyond POSIX specification.”

Personally, I like bash over sh. But on Solaris 10, sh is the default shell. So, in this post, I will show you that how to change the shell from sh to bash.

First verify the shell for current  user (In my case, it’s arbab):

grep arbab /etc/passwd

Now switch to root user and enter the following command:

usermod  -s  /usr/bin/bash arbab

Now go back as user arbab(that’s for me, you will use your’s) and verify the change:

grep arbab /etc/passwd

We are done 🙂

Hope this will help you!

Please Remember me in your prayers!


Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

%d bloggers like this: