Bash 를 바이너리로 받아와 설치 합니다.

yongbok# pkg_add
-r bash

Bash 설치를 반영 해줍니다.

yongbok# rehash

Bash 가 설치 되있는지 확인
해봅니다.

yongbok# which bash
/usr/local/bin/bash

yongbok# pkg_info
bash-4.0.33         The GNU
Project’s Bourne Again SHell
gettext-0.17_1      GNU gettext package
libiconv-1.13.1    

A character set conversion library

/etc/passwd 파일에
root 와 toor 관리자 계정이 사용하고 있는 쉘을 확인 합니다.

yongbok#

cat /etc/passwd | egrep ‘root|toor’
root:*:0:0:Charlie
&:/root:/bin/csh
toor:*:0:0:Bourne-again Superuser:/root:
daemon:*:1:1:Owner

of many system processes:/root:/usr/sbin/nologin

root
와 toor 관리자 계정의 쉘을 Bash 로 변경 합니다.

yongbok#

chsh -s bash root
chsh: user information updated

yongbok# chsh -s bash toor
chsh: user information
updated

Bash 로 반영이 되었는지 확인 하기 위해서 SSH 원격을 다시 재로그인
해보면 됩니다.

yongbok# su toor

[root@yongbok
~]# echo $SHELL
/usr/local/bin/bash