title: Why brew installation needs sudo access?
body: <p>Why brew installation needs sudo access?</p>
  <p>Is it even safe to install brew as sudo?</p>
  <pre><code>/bin/bash -c &quot;$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)&quot;
  
  ==&gt; Checking for `sudo` access (which may request your password).
  Sorry, user XXX may not run sudo on XXXXXX.
  Need sudo access on macOS (e.g. the user XXX needs to be an Administrator)!
  
  </code></pre>
  <p>I am super confused here and wondering is it ok to install brew with sudo or not?</p>
  <p>Also why is it ok to install brew as sudo?</p>