Find the answer to your Linux question:
Page 1 of 2 1 2 LastLast
Results 1 to 10 of 12
Our server was hacked and the password of "root" was modified. The Cent OS version is 3.9 and i386. How to change the password to enter the OS? I also ...
  1. #1
    Just Joined! timiao's Avatar
    Join Date
    Jul 2009
    Location
    22030
    Posts
    17

    How to upgrade Cent OS from Version 3.9 to 5.2 or latest version?

    Our server was hacked and the password of "root" was modified. The Cent OS version is 3.9 and i386. How to change the password to enter the OS?

    I also need to upgrade the OS. Any help will be appreciated.

    Thanks!

  2. #2
    Just Joined!
    Join Date
    Jul 2009
    Location
    Chicago, IL
    Posts
    9
    I can't post links, so I can only tell you how to get there. Google "centOS change root password" and go the 4th result, it should be titled "Linux reset forgotten root password"

  3. #3
    Linux Engineer Segfault's Avatar
    Join Date
    Jun 2008
    Location
    Acadiana
    Posts
    855
    You really do not need to change the password, you need to boot up with some LiveCD, get user files out from there and do a clean install of OS.

    A case like this should be thoroughly investigated to find out how they got in, whether it was a poorly configured application or something wasn't updated. So it won't happen again.

  4. #4
    Just Joined! timiao's Avatar
    Join Date
    Jul 2009
    Location
    22030
    Posts
    17
    thanks all . i got it.
    Now, i run into another problem. When I use
    Code:
     yum upgrade
    to upgrade the OS from 3.9 to the latest version, I reboot computer after all runnings finished.

    But, after typing
    Code:
    lsb_release -a
    the following information shows:

    LSB Version: 1.3
    Distributor ID: CentOS
    Description: CentOS release 3.9 (Final)
    Release: 3.9
    Codename: Final

    Why the OS didnot be upgraded?

  5. #5
    Linux Engineer Segfault's Avatar
    Join Date
    Jun 2008
    Location
    Acadiana
    Posts
    855
    I think you did not understand. The computer is compromised. You cannot trust it any more. You have to do fresh install.

  6. #6
    oz
    oz is offline
    forum.guy
    Join Date
    May 2004
    Location
    arch linux
    Posts
    18,095
    I agree with Segfault that a clean install is in order if the system was compromised and someone else has had the root password. Just resetting the password isn't enough to make sure that the system hasn't been changed in some way.

    Just curious, did you do a fresh install, timiao?


    Edit: oops, segfault was a second quicker than me on the submit button, but it's funny that we were thinking exactly the same at the same time.
    oz

    new members/users: read this first | new member faq
    no private messages requesting computer support - post them on the forums!
    please use the "report post" button to alert our forum admins to problematic posts rather than responding to them yourself.

  7. #7
    Linux Engineer Segfault's Avatar
    Join Date
    Jun 2008
    Location
    Acadiana
    Posts
    855
    Well, everybody with little experience thinks same facing problem like this one.

  8. #8
    Just Joined! timiao's Avatar
    Join Date
    Jul 2009
    Location
    22030
    Posts
    17
    Quote Originally Posted by Segfault View Post
    I think you did not understand. The computer is compromised. You cannot trust it any more. You have to do fresh install.
    Thanks Segfault,

    Now, I restored the password. and, I can enter the OS.

    I want to upgrade the current OS from version 3.9 to 5.2 or the latest version on another compuer.

    so, I used
    Code:
     yum upgrade
    But, after rebooting, the OS version information shows still version 3.9.

  9. #9
    oz
    oz is offline
    forum.guy
    Join Date
    May 2004
    Location
    arch linux
    Posts
    18,095
    I wouldn't advise doing an upgrade, but do a fresh install with the latest version of CentOS. The system has been tampered with according to your earlier post and an upgrade isn't going to necessarily solve any issues that remain after the system was compromised.
    oz

    new members/users: read this first | new member faq
    no private messages requesting computer support - post them on the forums!
    please use the "report post" button to alert our forum admins to problematic posts rather than responding to them yourself.

  10. #10
    Just Joined! timiao's Avatar
    Join Date
    Jul 2009
    Location
    22030
    Posts
    17
    Quote Originally Posted by ozar View Post
    I wouldn't advise doing an upgrade, but do a fresh install with the latest version of CentOS. The system has been tampered with according to your earlier post and an upgrade isn't going to necessarily solve any issues that remain after the system was compromised.
    Thanks ozar, I agree with you. I will re-install a latest version CentOS at the compromised computer.

    But, now another computer is also installed CentOS 3.9 as the hacked one. For avoiding being hacked, I want to upgrade it.

Page 1 of 2 1 2 LastLast

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
...