The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Dummies Questions & Answers
Google UNIX.COM


UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !!

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
file searching... Kaminski Shell Programming and Scripting 1 02-02-2008 04:23 AM
how to mount a file system of a remote machine to local file system cy163 UNIX for Dummies Questions & Answers 2 01-31-2008 06:04 AM
searching a file straight_edge Shell Programming and Scripting 4 01-12-2007 06:21 AM
Append a field to the end of each line of a file based on searching another file. ultimate Shell Programming and Scripting 2 03-29-2005 07:21 AM
searching for a string though file system peter.herlihy UNIX for Dummies Questions & Answers 3 12-06-2001 01:19 AM

Reply
 
Submit Tools LinkBack Thread Tools Display Modes
  #1  
Old 05-31-2007
Registered User
 

Join Date: Jul 2005
Location: Belfast
Posts: 49
Searching the file system

Guys,

We have taken a copy of our live filesystem to use for testing, but they want to be sure that no contact can be made to any of the live servers etc, I told them the best way would be to have this handled at the firewall level etc, but it seems that not possible, so.... would it be possible/feasible to search the whole file system for certain strings, for example ftp, I know the following command:

Code:
find . -exec grep "searchTxt" '{}' \; -print
Could be used, but the issue is more that it brings back every occurence of the string, as you would expect, but say I search for ftp, it will bring back xxxxxftp, is there another way of checking for stuff like this, or checking the permissions on files, or taking some other approach to doing this?

Thanks
Reply With Quote
Forum Sponsor
  #2  
Old 05-31-2007
Registered User
 

Join Date: Sep 2006
Posts: 1,580
the best way IMO is to test your system in an isolated lan.
Reply With Quote
  #3  
Old 05-31-2007
Registered User
 

Join Date: Jul 2005
Location: Belfast
Posts: 49
This is what i mentioned above Ghost, but thats not possible i'm afraid
Reply With Quote
  #4  
Old 05-31-2007
Registered User
 

Join Date: Sep 2006
Posts: 1,580
Quote:
Originally Posted by LiquidChild
This is what i mentioned above Ghost, but thats not possible i'm afraid
no, i did not see you mention it. What i meant is, an isolated LAN, not connected by your firewall, that you can do testing in. However since you don't have it, then you could try the find command you have posted. pls make clear, what do you mean by "it will bring back xxxxftp" ?? do you mean you only want to search for "ftp" and not things like xxxxftp, ftpyyyyyy, or zzzftpxxx ?
Reply With Quote
  #5  
Old 06-01-2007
Registered User
 

Join Date: Jul 2005
Location: Belfast
Posts: 49
Quote:
Originally Posted by ghostdog74
no, i did not see you mention it. What i meant is, an isolated LAN, not connected by your firewall, that you can do testing in. However since you don't have it, then you could try the find command you have posted. pls make clear, what do you mean by "it will bring back xxxxftp" ?? do you mean you only want to search for "ftp" and not things like xxxxftp, ftpyyyyyy, or zzzftpxxx ?
Kind of, yes i know that you could add the -w option for the full word, but that mite not bring back some results we want to.

Would it be possible to use the hosts file to reroute certain ip address back on themselves or something like that?
Reply With Quote
  #6  
Old 06-01-2007
Registered User
 

Join Date: Sep 2006
Posts: 1,580
then a different approach can be made. how about turning on any software firewalls, like iptables/ipchains or something? you can set it to block connections out from your server.
Reply With Quote
  #7  
Old 06-01-2007
Registered User
 

Join Date: Jul 2005
Location: Belfast
Posts: 49
Are these installed on the actually servers themselves?
Reply With Quote
Google The UNIX and Linux Forums
Reply

Thread Tools
Display Modes




All times are GMT -7. The time now is 04:06 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited.
The UNIX and Linux Forums Content Copyright ©1993-2008. All Rights Reserved.Ad Management by RedTyger Visit The Complex Event Processing Blog

Content Relevant URLs by vBSEO 3.2.0