[mythtv-users] Shutdown / Restart Frontend

Michael Stucky mike at stucky.us
Sat Dec 13 03:03:22 UTC 2014


On Fri, Dec 12, 2014 at 9:29 PM, Bill Meek <keemllib at gmail.com> wrote:
>
> On 12/12/2014 08:04 PM, Michael Stucky wrote:
> ...
> > Make sure that the user that runs the mythfrontend has permission to
>
>> execute reboot/shutdown. You will probably need to add a line like this to
>> /etc/suders:
>>
>>   mythtv ALL = NOPASSWD: /sbin/reboot, /sbin/halt, /sbin/shutdown
>>
>> This assumes that "mythtv" is the user that runs mythfrontend. And the
>> proper way to edit /etc/suders is:
>>
>> sudo visudo
>>
>
> If the line: #includedir /etc/sudoers.d appears in /etc/sudoers, then,
> as I just posted, put the changes in /etc/sudoers.d/mythtv (which may
> already be there.) Both ways work, sudoers.d is preferred.
>
> --
> Bill
>
>
I have updated my frontend's sudoers config by moving the
reboot/halt/shutdown line to /etc/sudoers.d/mythtv and have verified that
the frontend shuts down as before.

Thanks for showing us a better way to do this.

Mike
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mythtv.org/pipermail/mythtv-users/attachments/20141212/cd90ec6d/attachment.html>


More information about the mythtv-users mailing list