A-A+

AIX安装Bashshell

2013年11月06日 AIX运维 暂无评论 阅读 4,032 次

AIX默认为 Korn Shell,如需使用BSH ,操作如下:

1)下载bash软件

ftp://ftp.software.ibm.com/aix/freeSoftware/aixtoolbox/RPMS/ppc/bash/bash-3.2-1.aix5.2.ppc.rpm

2) 安装bash软件

rpm -ivh bash-3.2-1.aix5.2.ppc.rpm

3) 修改用户环境变量,$HOME/.profile添加:

export PS1=”[\u@\h \W]#”

4) 修改/etc/security/login.cfg,在shells属性添加bash命令:

shells = /bin/bash,/bin/sh,/bin/bsh……

5) 修改/etc/passwd,修改用户的默认shell,如:

root:!:0:0::/:/bin/bash

6) 注销,重新登陆系统

# smit  install

 

[Entry Fields]
* INPUT device / directory for software               /
* SOFTWARE to install                                [bash-4.2-1.aix6.1.ppc.rpm]                 +
PREVIEW only? (install operation will NOT occur)    no                                        +
COMMIT software updates?                            no                                                              +
+
ACCEPT new license agreements?                      yes                                                       +

注:如果需要用aix的ksh环境,只需要在系统上执行命令:#ksh  。

给我留言