I have granted one user a couple of permissions to other acccounts. I am running SLES 11 sp1 .
This I have done with yast (just to be sure) and afterwards also with /etc/sudoers file.
Now when I run a command it is asking for password, but I have used the option NOPASSWD.
When running sudo -l , it shows all the correct permissions
this is puzzling, why is it asking for a password, even when it's configured not to use is

sudoer file:
Code:
Defaults        always_set_home
Defaults        env_reset
Defaults        env_keep = "LANG LC_ADDRESS LC_CTYPE LC_COLLATE LC_IDENTIFICATION LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER LC_TELEPHONE LC_TIME LC_ALL LANGUAGE LINGUAS XDG_SESSION_COOKIE"
Defaults        targetpw
ALL     ALL = (ALL) ALL
root    ALL = (ALL) ALL
ki  ALL = (test1) NOPASSWD:ALL
ki  ALL = (test2) NOPASSWD:ALL
ki  All = (test3) NOPASSWD:ALL
ki  ALL = (test4) NOPASSWD:ALL
sudo - l command on the user ki:
Code:
sudo -l
Matching Defaults entries for ki on this host:
    always_set_home, env_reset, env_keep="LANG LC_ADDRESS LC_CTYPE LC_COLLATE LC_IDENTIFICATION LC_MEASUREMENT LC_MESSAGES
    LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER LC_TELEPHONE LC_TIME LC_ALL LANGUAGE LINGUAS XDG_SESSION_COOKIE", targetpw

User bi may run the following commands on this host:
    (ALL) ALL
    (test1) NOPASSWD: ALL
    (test2) NOPASSWD: ALL
    (test3) NOPASSWD: ALL
    (test4) NOPASSWD: ALL