对于Shellshock问题 我在redhat 4,5上升级bash使用以下步骤
检查bash版本
root@aaaA:/usr/src/redhat/RPMS/x86_64>bash --version
GNU bash, version 3.2.25(1)-release (x86_64-redhat-linux-gnu)
Copyright (C) 2005 Free Software Foundation, Inc.
升级bash
rpmbuild --rebuild -bb bash-3.2-33.el5_11.4.src.rpm
cd /usr/src/redhat/RPMS/x86_64/
root@aaa:/usr/src/redhat/RPMS/x86_64>rpm -Uvh bash-*
Preparing... ########################################### [100%]
1:bash ########################################### [ 50%]
2:bash-debuginfo ########################################### [100%]
再次检查bash版本
root@aaa:/usr/src/redhat/RPMS/x86_64>bash --version
GNU bash, version 3.2.25(1)-release (x86_64-redhat-linux-gnu)
Copyright (C) 2005 Free Software Foundation, Inc.
root@aaa:/usr/src/redhat/RPMS/x86_64>bash --version
GNU bash, version 3.2.25(1)-release (x86_64-redhat-linux-gnu)
Copyright (C) 2005 Free Software Foundation, Inc.
root@aaa:/usr/src/redhat/RPMS/x86_64>rpm -qa | grep bash
bash-3.2-33.4
bash-debuginfo-3.2-33.4
为什么bash版本没有改变为bash-3.2-33.4