- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - Linux
- >
- Weird behaviour for root user
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-11-2005 07:38 AM
05-11-2005 07:38 AM
I am running a red hat server. Up until recently it has been functioning perfectly. However, now when I log in as the root user (via sudo) I have about a minute to execute commands then it logs out to the user I was.
After it logs me out then I can't type anything. Well - I can type but it only takes one letter and then says 'command not found' (not suprisingly). Anybody have any idea what is going on and how I might fix it?
Thanks
Jeff
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-11-2005 07:43 AM
05-11-2005 07:43 AM
SolutionAlso run checkrootkit because your box may have been hacked.
Its also possible that the /usr filesystem is not mounted and a lot of commands are missing.
SEP
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-11-2005 07:44 AM
05-11-2005 07:44 AM
Re: Weird behaviour for root user
Thanks
Jeff
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-11-2005 08:20 AM
05-11-2005 08:20 AM
Re: Weird behaviour for root user
That was a problem for me.
I used yum
yum -y install checkrootkit
Its not available via up2date.
This might be the one.
http://rpmfind.net/linux/RPM/PLD/dists/ra/PLD/i386/PLD/RPMS/chkrootkit-0.37-1.i386.html
SEP
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-11-2005 08:45 AM
05-11-2005 08:45 AM
Re: Weird behaviour for root user
Thanks again. The only line I saw infected was:
Checking `su'... INFECTED
Should I replace the binary? Can I find it online?
Thanks
Jeff
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-11-2005 09:24 AM
05-11-2005 09:24 AM
Re: Weird behaviour for root user
I would replace the binary and re-run checkrootkit if possible.
Ideally, I'd reinstall the entire OS, then bastille, and harden the server a great deal prior to exposing it to the Internet again.
SEP
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-11-2005 10:28 AM
05-11-2005 10:28 AM
Re: Weird behaviour for root user
I'd reinstall the OS, but if you want to try and clean it up note that chrootkit depends on several system binaries You may want to verify them before running the script (do you have Tripwire? if not use RPM). These binaries are awk, cut, egrep, find, head, id, ls, netstat, ps, strings, sed, and uname. However, if you have known good backup copies of these, you can specify the path to them by using the -p option. For instance, you can copy them to a CD-ROM and then mount it under /mnt/cdrom, you would use a command like this:
# ./chrootkit -p /mnt/cdrom
HTH,
Ross
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-11-2005 06:18 PM
05-11-2005 06:18 PM
Re: Weird behaviour for root user
First remove your machine from network, the hacker must have already installed back doors in your system so to avoid any future attacks through your system first remove it from network.
i would suggest to re-install OS with latest version of it. There is no point in reinstalling same version again since it is known that it is already compromised. use latest version with all security updates.
install tripwire, bastille linux to harden security of your system. tripwire can be used to check the file integrity of your system.
also check if you have any other system on the network for potential compromise. since hackers anticipate that they will get caught they try to have backup plans by having few more compromised machines on the same network.
Regards,
Gopi
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-15-2005 05:03 AM
08-15-2005 05:03 AM