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

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



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?

You can use a simple bash script. Try (as root:)

for f in `find / -uid OLDUID`; do chown NEWUID $f; done


Hope this helps,

-- 
George Borisov

DXSolutions Ltd

Attachment: signature.asc
Description: OpenPGP digital signature


Reply to: