Re: script to find files owned by particular user and replac…

Top Page
Attachments:
Message as email
+ (text/plain)
Delete this message
Reply to this message
Author: Darrin Chandler
Date:  
To: Main PLUG discussion list
Subject: Re: script to find files owned by particular user and replace with another uid
On Wed, Oct 04, 2006 at 04:45:35PM -0700, Craig White wrote:
> Anybody have a script that finds file say owned by uid=1010 and replace
> owner with uid=1020?


# find / -user 1010 -ok chown 1020 {} \;

or if you're brave

# find / -user 1010 -exec chown 1020 {} \;

-- 
Darrin Chandler            |  Phoenix BSD Users Group
   |  http://bsd.phoenix.az.us/
http://www.stilyagin.com/  |
---------------------------------------------------
PLUG-discuss mailing list - 
To subscribe, unsubscribe, or to change  you mail settings:
http://lists.PLUG.phoenix.az.us/mailman/listinfo/plug-discuss