[opensuse] SUDO always requires password 11.4
I have a directory /local/usr/bin/sudo, which I use to hold scripts that would normally require root privileges, but I want to start as a user, usually via the menu. I have used visudo to edit the sudo file in the same way as an 11.0 system, where this works as expected. However, I can't seem to get this to work without being asked for the root password. I have added "jknott ALL = NOPASSWD: /usr/local/bin/sudo/*", which is supposed to enable running items in that directory without requiring a root password. Is there some difference between 11.0 (and earlier) and 11.4 that might cause this problem? tnx jk -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
On 18/07/11 17:54, James Knott wrote:
I have a directory /local/usr/bin/sudo, which I use to hold scripts that would normally require root privileges, but I want to start as a user, usually via the menu. I have used visudo to edit the sudo file in the same way as an 11.0 system, where this works as expected. However, I can't seem to get this to work without being asked for the root password. I have added "jknott ALL = NOPASSWD: /usr/local/bin/sudo/*", which is supposed to enable running items in that directory without requiring a root password. Is there some difference between 11.0 (and earlier) and 11.4 that might cause this problem?
tnx jk
I presume you remembered to comment out 'defaults targetpw'. Check the output of 'sudo -l' for what privileges sudo thinks you should have. Regards, Tejas -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
Tejas Guruswamy wrote:
On 18/07/11 17:54, James Knott wrote:
I have a directory /local/usr/bin/sudo, which I use to hold scripts that would normally require root privileges, but I want to start as a user, usually via the menu. I have used visudo to edit the sudo file in the same way as an 11.0 system, where this works as expected. However, I can't seem to get this to work without being asked for the root password. I have added "jknott ALL = NOPASSWD: /usr/local/bin/sudo/*", which is supposed to enable running items in that directory without requiring a root password. Is there some difference between 11.0 (and earlier) and 11.4 that might cause this problem?
tnx jk
I presume you remembered to comment out 'defaults targetpw'. Check the output of 'sudo -l' for what privileges sudo thinks you should have.
Yes, I have tried that, both with and without the following line rem'd out. When I do that, it now asks for my user password and then, after I enter it, I get an error stating that I don't have permission. jknott@t43:~> sudo -l Matching Defaults entries for jknott 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" User jknott may run the following commands on this host: (ALL) ALL (root) NOPASSWD: /usr/local/bin/sudo/* -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
Dumb, Dumb, DUMB!!! I just realized the problem. I have /local/usr reversed in the path. It worked on the old system because I had a symlink from /usr/local to /local/usr, but not on the new system. BTW, it works without that line rem'd out in both old and new systems. James Knott wrote:
Tejas Guruswamy wrote:
On 18/07/11 17:54, James Knott wrote:
I have a directory /local/usr/bin/sudo, which I use to hold scripts that would normally require root privileges, but I want to start as a user, usually via the menu. I have used visudo to edit the sudo file in the same way as an 11.0 system, where this works as expected. However, I can't seem to get this to work without being asked for the root password. I have added "jknott ALL = NOPASSWD: /usr/local/bin/sudo/*", which is supposed to enable running items in that directory without requiring a root password. Is there some difference between 11.0 (and earlier) and 11.4 that might cause this problem?
tnx jk
I presume you remembered to comment out 'defaults targetpw'. Check the output of 'sudo -l' for what privileges sudo thinks you should have.
Yes, I have tried that, both with and without the following line rem'd out. When I do that, it now asks for my user password and then, after I enter it, I get an error stating that I don't have permission.
jknott@t43:~> sudo -l Matching Defaults entries for jknott 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"
User jknott may run the following commands on this host: (ALL) ALL (root) NOPASSWD: /usr/local/bin/sudo/*
-- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
participants (2)
-
James Knott
-
Tejas Guruswamy