[sudo-users] sudo -i doesn't respect NOPASSWD?

Sébastien Luttringer seblu at seblu.net
Mon Sep 9 12:04:17 MDT 2013


Hello,

With the version 1.8.7 I'm not able to run command without password
with the argument -i on the command line.

$ sudo -V
Sudo version 1.8.7
Sudoers policy plugin version 1.8.7
Sudoers file grammar version 43
Sudoers I/O plugin version 1.8.7
$ sudo -n -u root -i id
sudo: a password is required
$ sudo -n -u root id
uid=0(root) gid=0(root) groups=0(root)

This is my sudoers config file.

# cat /etc/sudoers.d/81-seblu-id
seblu ALL=(root) NOPASSWD: /usr/bin/id

Is there any special option to have NOPASSWD working with -i? Or is it a bug?

Cheers,

-- 
Sébastien "Seblu" Luttringer
https://www.seblu.net
GPG: 0x2072D77A



More information about the sudo-users mailing list