Before I took ownership of /usr/local, "brew link" caused a "/usr/local/..." not writeable.
Is there any particular security reason why the program didn't say something like "The operating system won't let me write to this folder, but I think I can fix that problem for you. I'll just need your administrator password."