$ sudo find . -xdev -user <old-uid> -print -exec chown <new-uid> {} \;
Never been to CodeSnippets before?
Snippets is a public source code repository. Easily build up your personal collection of code snippets, categorize them with tags / keywords, and share them with the world (or not, you can keep them private!)
Find and change a users uid (See related posts)
You need to create an account or log in to post comments to this site.
Related Posts
» Clearing out a bunch of spam... in find awk xargs postfix email spam spool
» delete a filename starting w... in find shell
» Get packet information on OS X in osx network cli
» Stop bell/beep in bash in linux cli debian
» Enable svn+ssh remote logins in ssh svn osx subversion cli
» find and delete Thumbs direc... in find iPhoto Thumbs delete
Snippets (source code soon to be available) developed by Peter Cooper and powered by Ruby On Rails