RedHat Server Security Thread

RedHat Linux 9.0
I think my system is being hacked.  
I saw the  .bash_profile under root have the lines as follows:

# User specific environment and startup programs
PATH=$PATH:$HOME/bin
BASH_ENV=$HOME/.bashrc
USERNAME="root"
export USERNAME BASH_ENV PATH

I see this differently in other linux box:
PATH=$PATH:$HOME/bin
export PATH
unset USERNAME

Can somebody explain what the lines mean ?
ChanYiuPongAsked:
Who is Participating?
 
kblack05Connect With a Mentor Commented:
Editing the pages will not clear the trojan, and will not fix the problem. First you need to determine how the system was comprimised. If you edit or attempt to repair the system while someone still has rougue access then they will know you are on to them, and may just decide to format the server on their way out the door.

Please download chkrootkit from the url above, run it, and see if the system is in fact infected.

The differences are probably to force the server to use an alternate command directory, the one containing the infected executables.
0
 
TintinCommented:
There's nothing in the .bash_profile that would indicate you have been hacked.  It's a perfectly acceptable profile, except that there's no need to manually set USERNAME
0
 
kblack05Commented:
In order to avoid spectulation on such things, you should install and run "chkrootkit" which checks many known methods to see if the system is compromised. You can get the progrem via Yum with 'yum install chkrootkit' or download and compile it from souce. See the home site at http://www.chkrootkit.org 

Here is a good tutorial on installing and using chkrootkit http://www.webhostgear.com/25.html
0
Evaluating UTMs? Here's what you need to know!

Evaluating a UTM appliance and vendor can prove to be an overwhelming exercise.  How can you make sure that you're getting the security that your organization needs without breaking the bank? Check out our UTM Buyer's Guide for more information on what you should be looking for!

 
ChanYiuPongAuthor Commented:
Question abandon.
0
 
kblack05Commented:
Even though you abandoned the question, you received very legitimate answers.
0
 
ChanYiuPongAuthor Commented:
well, you give me an article on chkrootkit
But you do not provide the information on what the lines differ means.
Still everyday the server being placed with phlishing sites.
0
All Courses

From novice to tech pro — start learning today.