[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
Tue May 29 13:07:44 UTC 2012
Ubuntu 12.04.
Content of the auth.log file following the execution of a cron :
Content of the Cron script file :
sudo /usr/bin/cpufreq-set --cpu 0 --governor powersave
sudo /usr/bin/cpufreq-set --cpu 1 --governor powersave
Content of the auth.log file :
May 29 15:00:01 vortex CRON[30884]: pam_unix(cron:session): session opened for user pascal by (uid=0)
May 29 15:00:01 vortex CRON[30883]: pam_unix(cron:session): session opened for user root by (uid=0)
May 29 15:00:01 vortex CRON[30883]: pam_unix(cron:session): session closed for user root
May 29 15:00:01 vortex sudo: pam_unix(sudo:auth): conversation failed
May 29 15:00:01 vortex sudo: pam_unix(sudo:auth): auth could not identify password for [pascal]
May 29 15:00:01 vortex sudo: pam_unix(sudo:auth): conversation failed
May 29 15:00:01 vortex sudo: pam_unix(sudo:auth): auth could not identify password for [pascal]
May 29 15:00:01 vortex sudo: pam_unix(sudo:auth): conversation failed
May 29 15:00:01 vortex sudo: pam_unix(sudo:auth): auth could not identify password for [pascal]
May 29 15:00:01 vortex sudo: pascal : 3 incorrect password attempts ; TTY=unknown ; PWD=/home/pascal ; USER=root ; COMMAND=/usr/bin/cpufreq-set --cpu 0 --governor powersave
May 29 15:00:01 vortex sudo: unable to execute /usr/sbin/sendmail: No such file or directory
May 29 15:00:01 vortex sudo: pam_unix(sudo:auth): conversation failed
May 29 15:00:01 vortex sudo: pam_unix(sudo:auth): auth could not identify password for [pascal]
May 29 15:00:01 vortex sudo: pam_unix(sudo:auth): conversation failed
May 29 15:00:01 vortex sudo: pam_unix(sudo:auth): auth could not identify password for [pascal]
May 29 15:00:01 vortex sudo: pam_unix(sudo:auth): conversation failed
May 29 15:00:01 vortex sudo: pam_unix(sudo:auth): auth could not identify password for [pascal]
May 29 15:00:01 vortex sudo: pascal : 3 incorrect password attempts ; TTY=unknown ; PWD=/home/pascal ; USER=root ; COMMAND=/usr/bin/cpufreq-set --cpu 1 --governor powersave
May 29 15:00:01 vortex sudo: unable to execute /usr/sbin/sendmail: No such file or directory
Hope it can help ...
--
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