script to find files owned by particular user and replace with another uid
Darrin Chandler
dwchandler at stilyagin.com
Wed Oct 4 17:00:22 MST 2006
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
dwchandler at stilyagin.com | http://bsd.phoenix.az.us/
http://www.stilyagin.com/ |
More information about the PLUG-discuss
mailing list