ciao, ho configurato il file etc/sudoers per poter far eseguire all'utente che uso alcuni comandi; funzionano tutti quelli previsti tranne quelli relativi allo spegnimento/riavvio della macchina, ovvero shutdown, halt e reboot..
Uso slack 10 (anche con la 9.1 avevo lo stesso problema)
Di seguito riporto il file di configurazione.
Ciao e grazie
-------------------
# Host alias specification
Host_Alias LO=portatile
# User alias specification
# Cmnd alias specification
Cmnd_Alias SHUTDOWN=/sbin/halt,/sbin/shutdown,/sbin/reboot
Cmnd_Alias MOUNT=/sbin/mount,/sbin/umount
Cmnd_Alias MISC=/bin/rm,/usr/sbin/hddtemp
# Defaults specification
# User privilege specification
root ALL=(ALL) ALL
# Uncomment to allow people in group wheel to run all commands
# %wheel ALL=(ALL) ALL
# Same thing without a password
# %wheel ALL=(ALL) NOPASSWD: ALL
nesquik LO=SHUTDOWN,MOUNT,MISC, NOPASSWD: ALL