1
I migrated my OSX System from one machine to another. Everything works fine, but when I check the files under /usr/local, they now belong to a user 502, not my newly created user (which has the internal id 501).
Problem: even with sudo,
chown (-R) <username>:admin
did not work, the files remain unchanged.
How can I get rid of user 502?
Update: It seems normal files/dirs are changed, but symlinks aren't.
Thank you ... while this helped a lot, all symlinks (and thats many, since I am in the brew Cellar) are not changed. I will update the question. – Jan Galinski – 2014-04-09T20:06:44.067
You can update symlinks with with
chown -h username:admin filename
– mtak – 2014-04-09T21:29:45.750The -h flag did it. My Solution:
The
| xargs
-way would have worked just as well, and is probably faster ;) – mtak – 2014-04-09T21:51:51.377It did not work right away, so I used the loop to print out some debug. – Jan Galinski – 2014-04-09T21:56:48.267