LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 06-04-2011, 12:53 AM   #1
windstory
Member
 
Registered: Nov 2008
Posts: 486

Rep: Reputation: 36
search files and directories' owner


My system is centos 5.5, and I need nobody:nobody's directories and files under data.

There is a directory named "data, and this directory has so many directories and files generated by web program. Most of them is nobody:nobody.

I want to to make a list of these nobody:nobody directories ans files.

Is it possible to make a list of these directories and files?
 
Old 06-04-2011, 01:18 AM   #2
Rearden888
LQ Newbie
 
Registered: Jan 2010
Location: Anacortes, WA
Distribution: Crunchbang, Debian, Gentoo
Posts: 25
Blog Entries: 2

Rep: Reputation: 3
Use the find command, there are switches available for -user and -group

Something like "find /data -user nobody"

You can also limit the depth if you want.

Also, you might find it useful to dump the output to a file using something like:
"find /data -user nobody > ~/file-list.txt" so you can look at it later, since it will dump a really long list.
 
1 members found this post helpful.
  


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
BASH Unzip (and Search) Many Files in Directories dougp23 Programming 4 03-09-2011 02:45 PM
[perl] find2perl dynamic search for files or directories Asy Programming 4 07-13-2009 07:10 PM
Search repo for files/directories by name with wget gnashley Programming 1 12-30-2007 06:13 AM
Search for files only in directories you have sufficient permissions tepez Linux - Software 1 04-08-2007 11:07 AM
Perl: Search and replace directories within text files Erhnam Programming 2 03-07-2006 05:07 AM


All times are GMT -5. The time now is 04:07 PM.

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