I accident deleted one of the accounts on OpenLDAP and now the files/folder in my NFS and Isilon are all messed up. I need to search for folders/files with UID 3015 and change <user> account as owner. The problem is that there are too many files and folders that were changed because the account doesn't exist any more. Is there a script or command I can run to search for folder/files with <ID> then change <user> account as owner
Best to use noci's suggestion if you have many files, as noci's solution will work for any number of files... 1,000,000s of files, if this is required.