Configuring the root account to use BASH

Its a good idea to to keep the root account configured to use /sbin/sh for compatibility and redundancy.
However the bash shell is more user friendly, what we can do is set the root user profile to only use the BASH shell
if it is available, otherwise use the regular shell.

All you have to do is edit .profile and add these lines,
if [ -f /usr/bin/bash ]
then
/usr/bin/bash
fi

Leave a Reply

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

WordPress.com Logo

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

Google+ photo

You are commenting using your Google+ 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