Sudo

From MattWiki
Jump to: navigation, search

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