RedHat Server Security Thread

Posted on 2007-04-01
Last Modified: 2013-12-06
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

I see this differently in other linux box:
export PATH

Can somebody explain what the lines mean ?
Question by:ChanYiuPong
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 2
LVL 48

Expert Comment

ID: 18833987
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
LVL 11

Expert Comment

ID: 18837529
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 

Here is a good tutorial on installing and using chkrootkit

Author Comment

ID: 18944688
Question abandon.
U.S. Department of Agriculture and Acronis Access

With the new era of mobile computing, smartphones and tablets, wireless communications and cloud services, the USDA sought to take advantage of a mobilized workforce and the blurring lines between personal and corporate computing resources.

LVL 11

Expert Comment

ID: 18947474
Even though you abandoned the question, you received very legitimate answers.

Author Comment

ID: 18951197
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.
LVL 11

Accepted Solution

kblack05 earned 500 total points
ID: 18960071
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.

Featured Post

Secure Your Active Directory - April 20, 2017

Active Directory plays a critical role in your company’s IT infrastructure and keeping it secure in today’s hacker-infested world is a must.
Microsoft published 300+ pages of guidance, but who has the time, money, and resources to implement? Register now to find an easier way.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Many of us in IT utilize a combination of roaming profiles and folder redirection to ensure user information carries over from one workstation to another; in my environment, it was to enable virtualization without needing a separate desktop for each…
Our Group Policy work started with Small Business Server in 2000. Microsoft gave us an excellent OU and GPO model in subsequent SBS editions that utilized WMI filters, OU linking, and VBS scripts. These are some of experiences plus our spending a lo…
How to Install VMware Tools in Red Hat Enterprise Linux 6.4 (RHEL 6.4) Step-by-Step Tutorial
Attackers love to prey on accounts that have privileges. Reducing privileged accounts and protecting privileged accounts therefore is paramount. Users, groups, and service accounts need to be protected to help protect the entire Active Directory …

733 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question