I have installed Homebrew and Cask to my machine, and it has worked for some things. But I sometimes get an error saying
==> ln: /usr/local/bin/<Cask name>: Permission denied Error: Command failed to execute!
I know why this is caused, and how to fix it using
sudo, but is there a way to do it even temporally without
How it is done with
sudo chown -R $(whoami) /usr/local/bin