[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: changing user id for all files in a file system



On Wed, Jun 14, 2006 at 10:02:43PM +0200, Johannes Zellner wrote:
> is there a simple and fast way to change the user id for all files in
> the file system, say from 1234 to 5000?

sudo find / -uid [old UID] |xargs -i sudo chown [new UID] '{}'

-- 
Stephen R. Laniel
steve@laniels.org
Cell: +(617) 308-5571
http://laniels.org/
PGP key: http://laniels.org/slaniel.key

Attachment: signature.asc
Description: Digital signature


Reply to: