[mythtv-users] irexec, sudo and lircrc -- need help

Michael Heironimus mkh01 at earthlink.net
Thu Jun 22 12:32:31 UTC 2006

On Wed, Jun 21, 2006 at 07:31:59PM -0700, Gabe Rubin wrote:
> I know I need to edit my sudoers file, and succesfully have done this
> to allow mythtv user to issue the command, however it requires a
> password, and I don't exactly know the syntax to not require a
> password for this command.  Then, when I associate this command in
> lircrc, do I need to have sudo /usr/sbin/gdm-restart in quotes in the
> lircrc file, or is there something else I need to do?

If you don't want to require a password to run through sudo you need the
NOPASSWD: option in the sudoers entry. Something like this:

mythuser ALL=(root) NOPASSWD: /usr/sbin/gdm-restart

Michael Heironimus

More information about the mythtv-users mailing list