[Bug 996753] Re: entry in sudoers to execute a script without password prompt as root has no effect since 12.04
Pascal Levasseur
996753 at bugs.launchpad.net
Mon May 28 21:17:15 UTC 2012
Same problem, unable to execute a cron script who throttle the speed of
the cpu's.
This script was working perfectly on Ubuntu 11.10. with this entry in /etc/sudoers :
pascal vortex = NOPASSWD: /usr/bin/cpufreq-set
Now it ask for a password.
For test purpose I have done a fresh install of a Debian 6 and it works
without asking for the password with the same line in /etc/sudoers.
What happens in Ubuntu 12.04 ?
--
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to sudo in Ubuntu.
https://bugs.launchpad.net/bugs/996753
Title:
entry in sudoers to execute a script without password prompt as root
has no effect since 12.04
Status in “sudo” package in Ubuntu:
Confirmed
Bug description:
Since many ubuntu releases I execute a script in /usr/local/bin with
sudo without password prompt in this way:
/etc/sudoers:
...
%admin ALL = (ALL) ALL
%admin ALL = NOPASSWD: /usr/local/bin/script
...
Since Kubuntu 12.04 this entry has no effect any more. It is not
possible to execute /usr/local/bin/script as root without password
prompt.
I have try this entrys too for username at maschine
%username ALL = NOPASSWD: /usr/local/bin/script
username ALL = NOPASSWD: /usr/local/bin/script
%username maschine = NOPASSWD: /usr/local/bin/script
username maschine = NOPASSWD: /usr/local/bin/script
username ALL = (root) NOPASSWD: /usr/local/bin/script
So I think thers is a bug, because nothing works.
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/sudo/+bug/996753/+subscriptions
More information about the foundations-bugs
mailing list