title: How to add DEBIAN_FRONTEND=noninteractive in sudoers.d file?
body: <p>I am automating dpkg-sig installation for one of my project purpose. Now I want to install it noninteractive way.</p>
  <p>I have added the following in a file inside /etc/sudoers.d/</p>
  <pre><code>Cmnd_Alias DPKGSIG_INSTALL = /usr/bin/apt install -y dpkg-sig, \
                              /bin/apt install -y dpkg-sig
  abc ALL=(root) NOPASSWD: DPKGSIG_INSTALL
  Defaults:abc !requiretty
  </code></pre>
  <p>I am trying to install dpkg-sig using my golang code like this:</p>
  <pre><code>installDpkgSig := &quot;/usr/bin/sudo DEBIAN_FRONTEND=noninteractive apt install -o Dpkg::Options::=--force-confold -y dpkg-sig&quot;
  executor.cmd = *exec.Command(&quot;bash&quot;, &quot;-c&quot;, installDpkgSig)
  </code></pre>
  <p>It is not able to install it. Getting the following error:</p>
  <pre><code>sudo: sorry, you are not allowed to set the following environment variables: DEBIAN_FRONTEND
  </code></pre>
  <p>But when I remove <em>DEBIAN_FRONTEND=noninteractive</em> part from the installation command, it is working fine.
  How can run the installation noninteractive way?</p>