title: sudo -i doesn't work anymore with specific permissions through sudoers file
body: <p>I had a bash script which called sudo -i -u user /bin/bla/whatever. That worked fine until the last update to CentOS 5.8.
  That's the corresponding entry in the sudoers file:</p>
  
  <pre><code>Runas_Alias TEST = user1, user2
  Defaults:test always_set_home
  test ALL=(TEST) NOPASSWD: /bin/bash -c /bin/bla/whatever, /bin/bla/whatever
  </code></pre>
  
  <p>If I used sudo -i it seems it called the command </p>
  
  <pre><code>"/bin/bash -c /bin/bla/whatever"
  </code></pre>
  
  <p>(regarding the secure log). Now, since the update, it seems to call </p>
  
  <pre><code>"/bin/bash -c \/bin\/bla\/whatever"
  </code></pre>
  
  <p>and therefore is not allowed to. I tried to change the line in the sudoers file to </p>
  
  <pre><code>test ALL=(TEST) NOPASSWD: /bin/bash -c /bin/bla/whatever, /bin/bla/whatever, /bin/bash -c \/bin\/bla\/whatever
  </code></pre>
  
  <p>but thats not allowed syntax, so I tried:</p>
  
  <pre><code>test ALL=(TEST) NOPASSWD: /bin/bash -c /bin/bla/whatever, /bin/bla/whatever, /bin/bash -c \\/bin\\/bla\\/whatever
  </code></pre>
  
  <p>That's valid syntax but doesn't work either.</p>
  
  <p>If I use sudo -H -u user /bin/bla/whatever it works fine. Even if I allow /bin/bash in the sudoers file, but that would allow anything.....</p>
  
  <p>Any ideas?</p>
  
  <p>Erik</p>