DaemonForums  

Go Back   DaemonForums > FreeBSD > FreeBSD General

FreeBSD General Other questions regarding FreeBSD which do not fit in any of the categories below.

Reply
 
Thread Tools Display Modes
  #1   (View Single Post)  
Old 5th February 2009
carpman carpman is offline
Shell Scout
 
Join Date: Jul 2008
Posts: 94
Thanked 0 Times in 0 Posts
Default finding files by uid

Hello, i need to find files by using user id, i have following but get error:

Quote:
find /hsphere/local/home -uid 1013 -print
find: -uid: unknown option

any ideas?

cheers
Reply With Quote
  #2   (View Single Post)  
Old 5th February 2009
jggimi's Avatar
jggimi jggimi is offline
More noise than signal
 
Join Date: May 2008
Location: USA
Posts: 3,708
Thanked 214 Times in 189 Posts
Default

The find(1) man page would have answered your question.

Had you read it, you would have discovered that FreeBSD's find does not support query by uid, but can report files owned by a specific userid, or, files owned by no userid (where the uid does not have a match in /etc/passwd).
Reply With Quote
  #3   (View Single Post)  
Old 5th February 2009
BSDfan666 BSDfan666 is offline
Real Name: N/A, this is the interweb.
Helpful companion
 
Join Date: Apr 2008
Location: Ontario, Canada
Posts: 2,223
Thanked 193 Times in 184 Posts
Default

People, please read man pages.

Quote:
Originally Posted by find(1)
-user uname
True if the file belongs to the user uname. If uname is numeric and there is no such user name, then uname is treated as a user ID.
-group gname
True if the file belongs to the group gname. If gname is numeric and there is no such group name, then gname is treated as a group ID.
Hope it helps.
Reply With Quote
  #4   (View Single Post)  
Old 5th February 2009
jggimi's Avatar
jggimi jggimi is offline
More noise than signal
 
Join Date: May 2008
Location: USA
Posts: 3,708
Thanked 214 Times in 189 Posts
Default

Quote:
Originally Posted by BSDfan666 View Post
People, please read man pages.
ROFL!!

Thanks for the correction; I scanned too quickly.
Reply With Quote
Reply

Thread Tools
Display Modes

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

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Cleaning Portsnap files in /var/db/portsnap/files bram85 FreeBSD Ports and Packages 2 5th October 2009 09:54 AM
K3B not finding writer. maxrussell FreeBSD General 5 7th February 2009 11:41 AM
finding packages denpendencies with no internet connection roddierod OpenBSD Packages and Ports 1 13th November 2008 03:17 PM
How to sync files over ftp graudeejs FreeBSD General 4 4th August 2008 10:18 PM
hey, help finding something plz cheese11 FreeBSD General 3 20th June 2008 11:24 PM


All times are GMT. The time now is 12:39 PM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content copyright © 2007-2010, the authors
Daemon image copyright ©1988, Marshall Kirk McKusick