[mythtv-users] ACPI

Daryl McDonald darylangela at gmail.com
Sat Sep 12 20:38:11 UTC 2020


Still no joy. When I ran "sudo visudo" the comments said "consider creating
a sudoers.d file" (or something similar) which I didn't because the wiki
saed add this to the end of the file. Should I try the former?

On Fri, Sep 11, 2020 at 10:41 PM Daryl McDonald <darylangela at gmail.com>
wrote:

>
>
> On Fri, Sep 11, 2020 at 10:21 PM Stephen Worthington <
> stephen_agent at jsw.gen.nz> wrote:
>
>> On Fri, 11 Sep 2020 20:29:02 +0100, you wrote:
>>
>> >On Fri, 11 Sep 2020 at 20:18, Daryl McDonald <darylangela at gmail.com>
>> wrote:
>> >
>> >> I've been following the Wiki to configure automatic shutdown and
>> >> wakeup with rtc clock, but I can't get this accomplished:
>> >> 'Then add mythtv and any other uses you wish to the "wheel" group.'
>> >> There is no Wheel Group, is this even relevant? I'm logging out
>> (because
>> >> I'm using the "check_login.sh") but the box does not shut down (it
>> passed
>> >> the previous test in the wiki). I'm using myth v 31 on Ubuntu 20.04
>> >> combined FE/BE. TIA  Daryl
>> >>
>> >
>> >The wheel group is the historic name for what is now usually called the
>> >sudo group.  The idea is that you can just add users to the group instead
>> >of configuring them individually in /etc/sudoers.  Most distributions
>> will
>> >ship an /etc/sudoers file with:
>> >
>> >%sudo   ALL=(ALL:ALL) ALL
>> >
>> >in it, which makes this work.  Presumably in terms of what you're trying
>> to
>> >accomplish, this is because the automatic shutdown will be done by the
>> >mythtv user via sudo as:
>> >
>> >sudo shutdown -h now
>> >
>> >Cheers, Ian
>>
>> The problem with "sudo shutdown -h now" is that it will pop up a
>> request for a password.  Which is why you need to add sudoer
>> configuration for your shutdown script to allow it to be run by sudo
>> without a password.  So the "ACPI Shutdown" Wiki page tells you to add
>> this to the sudoers config:
>>
>> %mythtv ALL = NOPASSWD: /sbin/shutdown, /usr/bin/setwakeup.sh
>>
>
> I have this in the sudoers file, with the addition of
> /usr/bin/checklogin.sh
>
>>
>> as that has the "NOPASSWD:" option.
>>
>
> I also just noticed some bad pathways in setup, /usr/local/bin where it
> should have been /usr/bin and visa-versa, maybe it will turn off tonight,
> thanks all!
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mythtv.org/pipermail/mythtv-users/attachments/20200912/07db6555/attachment.htm>


More information about the mythtv-users mailing list