LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 03-22-2011, 07:32 PM   #1
linuxconversion
LQ Newbie
 
Registered: Feb 2008
Posts: 6

Rep: Reputation: 0
Finding a phrase on centos


Okay, I currently have Cpanel on my VPS, and i was checking the relay log on the WHM. The problem is, it is sending emails to changeme@change-me.info. At first i didn't care, but then I noticed thats an actual domain that has been registered. I have already change my root directory with .forward to email me, but i don't know where else this email has been put. I would like to know is there a way to search the entire system for for anything that contains "changeme@change-me.info".
 
Old 03-22-2011, 09:25 PM   #2
bigrigdriver
LQ Addict
 
Registered: Jul 2002
Location: East Centra Illinois, USA
Distribution: Debian Jessie 8.4
Posts: 5,873

Rep: Reputation: 348Reputation: 348Reputation: 348Reputation: 348
Since there are files and folders that the normal user doesn't have permission to read, you have to do the search as root.
sudo find / -type f | grep -i "changeme"
or possible
sudo find / -type f | xargs grep -i "changeme"

If you don't have sudo setup, just su to root then run the command above without the sudo part.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
finding version of CentOS abhayns Linux - Newbie 5 01-03-2011 07:35 AM
I don't understand the meaning of a phrase... Valmargaret General 16 02-14-2010 09:07 AM
i finding problem in install the centos 5.2 in virtulbox lcrukman LinuxQuestions.org Member Intro 2 03-06-2009 04:05 AM
find exact phrase subnet_rx Linux - General 1 03-29-2008 09:28 PM
grep a phrase degraffenried13 Linux - General 1 04-04-2004 12:10 PM


All times are GMT -5. The time now is 01:18 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration