title: error: could not lock config file /etc/gitconfig: Permission denied
body: <p>I am relatively new to the Ubuntu OS and Git.</p>
  <p>I have installed Git on Ubuntu 20.04 by following the instruction mentioned in the following link</p>
  <p><a href="https://git-scm.com/book/en/v2/Getting-Started-Installing-Git" rel="nofollow noreferrer">Getting Started Installing Git</a></p>
  <p>As mention in the <a href="https://git-scm.com/book/en/v2/Getting-Started-First-Time-Git-Setup" rel="nofollow noreferrer">next step</a> that there are three levels of Git Configuration</p>
  <ol>
  <li><strong>System Level Configuration</strong> - which applies to <em>every user</em> and all their repositories on the system</li>
  <li><strong>Global Level Configuration</strong> - which applies to the <em>current user</em> and all the their repositories on the system</li>
  <li><strong>Local Level Configuration</strong> - which applies to the <em>specific repository</em> you are working with</li>
  </ol>
  <p>I was able to change the global settings of the git by using the --global option, and also change the local setting of the git by using the --local option. But when I tried to change the setting of the git on system level using --system option, I encoutered the following error by the running the command <code>git config --system user.name &quot;My Name&quot;</code></p>
  <p><strong>Error:</strong>
  <code>error: could not lock config file /etc/gitconfig: Permission denied</code></p>