The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

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
How to remove directory with subdirectories and files? ppa108 UNIX for Dummies Questions & Answers 9 11-25-2008 02:02 AM
searching files through all subdirectories beneath the current directory milagros Shell Programming and Scripting 5 05-15-2007 04:00 PM
list largest files in a directory & its subdirectories igidttam UNIX for Dummies Questions & Answers 6 09-25-2006 11:31 AM
Files created by particular user Anshu UNIX for Dummies Questions & Answers 2 06-13-2006 08:12 AM
new directory - how to force files created in it to inherit grp,own and permissions avisb UNIX for Dummies Questions & Answers 2 04-26-2002 04:47 PM

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 06-12-2007
abhilashnair abhilashnair is offline
Registered User
  
 

Join Date: Jun 2007
Posts: 13
Find all files created by a specified user in a directory and its subdirectories

Is there a command or shell script which can be used for Finding all files created by a specified userid in a directory and its subdirectories.

Say, I want to find all such files in directory /abc as well as in all the subdirectories such as /abc/xyz or /abc/xyz/pqr aqnd so on which was created by specified user id
  #2 (permalink)  
Old 06-12-2007
ghostdog74 ghostdog74 is offline Forum Advisor  
Registered User
  
 

Join Date: Sep 2006
Posts: 2,508
on top of my head
Code:
find <directory> -type f -user "userid" -print
check your man page
  #3 (permalink)  
Old 06-12-2007
abhilashnair abhilashnair is offline
Registered User
  
 

Join Date: Jun 2007
Posts: 13
This worked for me..But for some files the following error was thrown

find: <filename>: Value too large to be stored in data type

What does it mean?
  #4 (permalink)  
Old 06-12-2007
jim mcnamara jim mcnamara is offline Forum Staff  
...@...
  
 

Join Date: Feb 2004
Location: NM
Posts: 5,717
As a guess - you have a filesystem that supports file specifications with more characters allowed in file + path than the value for _POSIX_PATH_MAX (256 bytes) or possibly PATH_MAX (machine dependent).

Can you show us the actual command that shows this error?
  #5 (permalink)  
Old 06-12-2007
solfreak's Avatar
solfreak solfreak is offline
Registered User
  
 

Join Date: Jun 2007
Posts: 35
Quote:
Originally Posted by abhilashnair
find: <filename>: Value too large to be stored in data type
Does it show the filename in the error message or just "<filename>" ?
  #6 (permalink)  
Old 06-13-2007
abhilashnair abhilashnair is offline
Registered User
  
 

Join Date: Jun 2007
Posts: 13
The actual command is the one which is given above. I just substituted the directory and user id

Also when the error is thrown....the actual filename is shown....obviously....but I cant mention it here
Closed Thread

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 08:44 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0