LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices



Reply
 
Search this Thread
Old 10-29-2008, 07:45 PM   #1
KingPanda
LQ Newbie
 
Registered: Sep 2008
Posts: 13

Rep: Reputation: 0
is there a way to list all files owned by a user?


I was wondering how I might be able to search for all files owned by one user, or multiple users. I want to be able to list the location of all files owned by a user. i would also like to search based on file size or name.

what command is good for this and what arguments?

thanks for any input!

Last edited by KingPanda; 10-29-2008 at 07:47 PM.
 
Old 10-29-2008, 08:14 PM   #2
jailbait
Guru
 
Registered: Feb 2003
Location: Blue Ridge Mountain
Distribution: Debian Wheezy, Debian Jessie
Posts: 7,592

Rep: Reputation: 188Reputation: 188
Use the find command with the -uname option to find files by owner.

Use the find command with the -size option to find files by size.

Use the find command with the -iname option to find files by name.

Use the find command with the -group option to find files by groups of users.

See:

man find

------------------
Steve Stites
 
Old 10-29-2008, 09:07 PM   #3
KingPanda
LQ Newbie
 
Registered: Sep 2008
Posts: 13

Original Poster
Rep: Reputation: 0
thanks jb. i have been looking through the find man page but man pages are always hard for me to understand. i guess tutorials are better for me. Thanks for your help though, just what i needed!
 
Old 10-29-2008, 09:16 PM   #4
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 12,499

Rep: Reputation: 1077Reputation: 1077Reputation: 1077Reputation: 1077Reputation: 1077Reputation: 1077Reputation: 1077Reputation: 1077
P'raps have a look at this.
And no, I don't know why the hell it's hidden under security ...
 
  


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
assign user to access root owned files eyt Linux - General 1 07-27-2007 04:28 PM
user access to files owned by root jonfa Linux - General 2 07-09-2007 12:58 PM
chown-ing all files on a drive owned by one user. nkoplm Linux - General 1 10-26-2006 07:20 AM
List files owned by user/group guideweb Linux - General 1 09-18-2004 09:18 PM
Make a file owned by root owned by a user sharpie Linux - Newbie 2 02-26-2004 02:26 AM


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