sudo chown 1050.1050 `find -uid 1000`
thats probably not going to work so well for files with spaces. and you may run into issues with the length of the command itself exceeding the max # of characters (depending on how many files the find command expands to)
so maybe something like this instead:
Code:
sudo find somedir -uid 1000 -exec chown 1050.1050 {} \;
though personally I would agree with undecim's approach of chown'ing your home directory ... since all files there should be owned by you and there shouldn't be too many other places in a typical linux filesystem that have files owned by the user (shared data folders aside perhaps)
Bookmarks