Op mijn HTPC met ubuntu 9.04 had ik een softwarematige temperatuur monitor en als de pc te heet werd, dan ging deze vanzelf uit. Ik had hiervoor mij sudoers file aangepast waardoor het shutdown commando niet vooraf hoefde te gaan door sudo.
Nu heb ik eer 9.10 upgezet (dit voor lirc) Maar nu was ik vergeten te kijken hoe mijn sudeors file er uit zag. Ik wil dit nl weer instellen. Ik krijg het niet werkend, ook na flink zoeken in de documentatie.
Hieronder mijn /etc/sudoers file:
# /etc/sudoers
#
# This file MUST be edited with the 'visudo' command as root.
#
# See the man page for details on how to write a sudoers file.
#
Defaults env_reset
# Host alias specification
# User alias specification
#User_Alias USERS = martin
# Cmnd alias specification
Cmnd_Alias SHUTDOWN_CMDS = /sbin/shutdown, /sbin/halt, /sbin/reboot
# User privilege specification
root ALL=(ALL) ALL
# Uncomment to allow members of group sudo to not need a password
# (Note that later entries override this, so you might need to move
# it further down)
# %sudo ALL=NOPASSWD: ALL
# Members of the admin group may gain root privileges
%admin ALL=(ALL) ALL
martin ALL=(ALL) NOPASSWD: SHUTDOWN_CMDS
Kan iemand zien wat ik fout doe?