[mythtv-users] ACPI

Daryl McDonald darylangela at gmail.com
Sat Sep 12 02:41:26 UTC 2020


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/20200911/0babd742/attachment.htm>


More information about the mythtv-users mailing list