Steps an OpenPages IT Administrator Can Use to Set the BASH Shell on
AIX
Technote (troubleshooting)
Problem(Abstract)
What are some steps an OpenPages IT
Administrator can follow to set the BASH shell on AIX?
Resolving the problem
An OpenPages IT administrator can do
the following to set the bash shell.
To set the shell:
1. Open the /etc/security/login.cfg file in a text editor (i.e.: vi).
2.
Add the location of the BASH shell installed
on your LPAR. For example:
usw: shells =
/bin/sh,/bin/bsh,/bin/csh,/bin/ksh,/bin/tsh,/bin/ksh93,/usr/bin
/sh,/usr/bin/bsh,/usr/bin/csh,/usr/bin/ksh,/usr/bin/tsh,/usr/bin/ksh93,/usr/bin/
rksh,/usr/bin/rksh93,/usr/sbin/uucp/uucico,/usr/sbin/sliplogin,/usr/sbin/snappd,
/opt/pware/bin/bash
|
3.
Use the chsh command
Result -bash-4.0# chsh Current available shells: /usr/bin/csh
/usr/bin/ksh /usr/bin/tsh /usr/bin/ksh93 /usr/bin/rksh /opt/pware/bin/bash
root's current login shell: /opt/pware/bin/bash Change (yes) or (no)? >
Choose yes and enter the bash shell as seen above.
|
DEMO!
Note: I performed this exercise on my one of
the test lpar having oslevel AIX53TL12
Check your current Shell
root@TESTLPAR(/root)#echo
$SHELL
/usr/bin/ksh
root@TESTLPAR(/root)#
root@TESTLPAR(/root)#chsh
Current available shells:
/bin/sh
/bin/bsh
/bin/csh
/bin/ksh
/bin/tsh
/bin/ksh93
/usr/bin/sh
/usr/bin/bsh
/usr/bin/csh
/usr/bin/ksh
/usr/bin/tsh
/usr/bin/ksh93
/usr/bin/rksh
/usr/bin/rksh93
/usr/sbin/uucp/uucico
/usr/sbin/sliplogin
/usr/sbin/snappd
root's current login shell:
/usr/bin/ksh
Change (yes) or (no)? > yes
To?>/usr/bin/bsh
root@TESTLPAR(/root)#exit
Connection to TESTLPAR
closed.
Logout and login
back to verify
$LOGNAME@TESTLPAR($PWD)#echo
$SHELL
/usr/bin/bsh
$LOGNAME@TESTLPAR($PWD)#
Repeat same steps
to change from BSH to KSH.