LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Security
User Name
Password
Linux - Security This forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here.

Notices


Reply
  Search this Thread
Old 09-03-2001, 02:35 AM   #1
jupiter
LQ Newbie
 
Registered: Sep 2001
Location: bkk
Distribution: redhat
Posts: 3

Rep: Reputation: 0
cannot remove hacker's file


A hacker has modified some system files in /etc. I could not find the way to remove (or modify) this file.

I have tried rm -f <filename> with supervisor priviledge (login as root) and got back the msg : "operation not permitted".

Pls. kindly advise
 
Old 09-03-2001, 07:52 AM   #2
trickykid
LQ Guru
 
Registered: Jan 2001
Posts: 24,149

Rep: Reputation: 269Reputation: 269Reputation: 269
what are the permission levels on the files..? not sure if that will help or not, or can you change the permission levels then try to delete them.
 
Old 09-03-2001, 09:53 AM   #3
jupiter
LQ Newbie
 
Registered: Sep 2001
Location: bkk
Distribution: redhat
Posts: 3

Original Poster
Rep: Reputation: 0
is the security level the same as file permission mode. If so, it is rwxr-xr-x i.e., root should be able to delete it.

if the security level is different from file permission mode, pls. advise how to check it.
 
Old 09-03-2001, 10:16 AM   #4
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,415
Blog Entries: 55

Rep: Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600
If its got spaces you have to quote em to remove them.
rm -f "/path/to/file/file name "
OTOH, if its not in the spaces try
lsattr /path/to/file/filename
to see if the u(undeletable) and i(immutable) bits have been set. If so,
chattr -iu /path/to/file/filename
will remove them, check with lsattr, then try to remove.

*Note there quite possibly are backdoors or compromised services installed. Unless you can *100%* verify the system is ok, I suggest you save your *human readable userdata* only, and reinstall from scratch.
 
Old 09-14-2001, 05:54 PM   #5
reader
Member
 
Registered: Apr 2001
Location: Gulf of Biscay
Posts: 32

Rep: Reputation: 15
(deleted) Excuse me

Last edited by reader; 09-14-2001 at 06:22 PM.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
how to remove file -T odious1 Linux - General 1 08-11-2005 12:29 PM
c++ file processing -- how to remove a record from a file sharonyiisl Programming 4 09-26-2004 03:54 AM
A Hacker's Poem misfit-x General 6 01-15-2004 07:50 AM
How do I remove a swap file linuxboy69 Linux - Software 5 11-25-2003 03:36 PM
cannot remove hacker's file jupiter Linux - Newbie 1 09-03-2001 08:01 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Security

All times are GMT -5. The time now is 01:59 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration