The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Updating Kernel?

Discussion in 'General Discussion' started by natekapi, Sep 24, 2006.

  1. natekapi

    natekapi Registered

    Joined:
    Sep 24, 2006
    Messages:
    1
    Likes Received:
    0
    Trophy Points:
    1
    Since CPanel doesn't update your kernel and up2date is set to ignore kernel updates on my box, whats the best way to update my kernel to fix this new local root exploit?
     
  2. kernow

    kernow Well-Known Member

    Joined:
    Jul 23, 2004
    Messages:
    865
    Likes Received:
    9
    Trophy Points:
    18
    cPanel Access Level:
    Root Administrator
    Run "up2date" from a consol and uncheck the kernel from the exclude list.
     
  3. sneader

    sneader Well-Known Member

    Joined:
    Aug 21, 2003
    Messages:
    1,126
    Likes Received:
    21
    Trophy Points:
    38
    Location:
    La Crosse, WI
    cPanel Access Level:
    Root Administrator
    Or hire it done...

    If you are uncomfortable with the kernel upgrade, I would suggest hiring it done. I chose Jonathan at Config Server and couldn't be happier:

    http://www.configserver.com/cp/general.html

    - Scott
     
  4. dalem

    dalem Well-Known Member
    PartnerNOC

    Joined:
    Oct 24, 2003
    Messages:
    2,577
    Likes Received:
    40
    Trophy Points:
    48
    Location:
    SLC
    cPanel Access Level:
    DataCenter Provider
  5. MMarko

    MMarko Well-Known Member

    Joined:
    Apr 18, 2005
    Messages:
    316
    Likes Received:
    0
    Trophy Points:
    16
  6. rsaylor

    rsaylor Well-Known Member

    Joined:
    Mar 27, 2003
    Messages:
    160
    Likes Received:
    1
    Trophy Points:
    18
    I did mine last night, used yum. It loaded the latest smp kernel. I will be rebooting tonight. So you should be good to go. I am using CentOS 4.4
     
  7. angelina_holy

    angelina_holy Well-Known Member

    Joined:
    Aug 6, 2006
    Messages:
    113
    Likes Received:
    0
    Trophy Points:
    16
    If you are having issues with your present linux kernel or just want to upgrade to kernel-smp-2.6.9-39.1 then here is the step by step guide.


    login to a shell on your server, and type



    uname -a



    the output should be something like



    Linux your.host.name 2.6.9-37.ELsmp #1 SMP Fri May 19 18:07:42 EDT 2006 i686 i686 i386 GNU/Linux


    the "2.6.9-37.ELsmp" is the current kernel on your server.
    That's what i have now.


    You probably have 22 or 34, instead of my 37.



    If so, while logged into your server,



    wget http://people.redhat.com/~jbaron/rhel4/RPMS.kernel/kernel-smp-2.6.9-39.1.EL.i686.rpm



    and after the download has completed, install the kernel



    rpm -ivh kernel-smp-2.6.9-39.1.EL.i686.rpm



    Check to see if the new kernel is installed by default in grub.conf



    cat /boot/grub/grub.conf



    Default should be 0
    And the kernel you've just installed should be the first one



    title CentOS (2.6.9-39.ELsmp)
    root (hd0,0)
    kernel /vmlinuz-2.6.9-39.ELsmp ro root=/dev/sda6
    initrd /initrd-2.6.9-39.ELsmp.img



    After that, wait until your server is not that busy(night time) and reboot the server.


    After it comes back online, check what kernel your system is using again (uname -a)
     
Loading...

Share This Page