[mythtv-users] Shutdown / Restart Frontend

Hika van den Hoven hikavdh at gmail.com
Sat Dec 13 09:35:19 UTC 2014


Hoi Hika,

Saturday, December 13, 2014, 10:09:53 AM, you wrote:

> Hoi Michael,

> Saturday, December 13, 2014, 4:03:22 AM, you wrote:

>> 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

> sudo shouldn't be needed. It seems the rights to the halt command are
> set wrongly on the distribution, they should be 755. reboot and
> poweroff should be simlinks to this /sbin/halt command.

> Tot mails,
>   Hika                            mailto:hikavdh at gmail.com

Oh, and the same goes for /sbin/shutdown

Tot mails,
  Hika                            mailto:hikavdh at gmail.com

"Zonder hoop kun je niet leven
Zonder leven is er geen hoop
Het eeuwige dilemma
Zeker als je hoop moet vernietigen om te kunnen overleven!"

De lerende Mens



More information about the mythtv-users mailing list