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

Schlaegel vthtym0505 at schlaegel.com
Thu Jun 22 05:55:39 UTC 2006


On 6/21/06, Gabe Rubin <gaberubin at gmail.com> wrote:
> Hi all:
>
> I have looked online to see if I can figure this out and having
> difficulty, I come to the list.
>
> I am trying to have one of my remote control buttons issue the
> gdm-restart command.  I find that Jarod's script doesn't always work
> for me, and gdm-restart always works when X gets thrashed.
>
> 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?

Try a small script that takes no parameters and just runs gdm-restart
and set it to suid root or sgid root.


More information about the mythtv-users mailing list