2

对于 Shellshock 问题,我在 redhat 4,5 上升级 bash,使用以下步骤

  1. 检查 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.

  2. 升级 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%]

  3. 再次检查 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.

  1. 重新启动并再次检查 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.

  1. 检查转速

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

4

0 回答 0