Jump to content

Sudo

From MattWiki

To Edit sudo users run As Root

visudo

Add the entry like this.

## Allow root to run any commands anywhere
root    ALL=(ALL)       ALL
matt    ALL=(ALL)       ALL

Now the user "matt" will have root access with out using the root password.

  • To Allow Mythtv to shutdown the system
sudo visudo

And add this to the bottom

%mythtv ALL = NOPASSWD: /sbin/halt