Sudo

To Edit sudo users run As Root visudo Add the entry like this. root   ALL=(ALL)       ALL matt   ALL=(ALL)       ALL Now the user "matt" will have root access with out using the root password.
 * 1) Allow root to run any commands anywhere

sudo visudo And add this to the bottom %mythtv ALL = NOPASSWD: /sbin/halt
 * To Allow Mythtv to shutdown the system