change the ownership and permissions of /usr/local back to your user account: $ sudo chown -R $(whoami) /usr/local