<div dir="ltr">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?</div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Fri, Sep 11, 2020 at 10:41 PM Daryl McDonald <<a href="mailto:darylangela@gmail.com">darylangela@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div dir="ltr"><br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Fri, Sep 11, 2020 at 10:21 PM Stephen Worthington <<a href="mailto:stephen_agent@jsw.gen.nz" target="_blank">stephen_agent@jsw.gen.nz</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">On Fri, 11 Sep 2020 20:29:02 +0100, you wrote:<br>
<br>
>On Fri, 11 Sep 2020 at 20:18, Daryl McDonald <<a href="mailto:darylangela@gmail.com" target="_blank">darylangela@gmail.com</a>> wrote:<br>
><br>
>> I've been following the Wiki to configure automatic shutdown and<br>
>> wakeup with rtc clock, but I can't get this accomplished:<br>
>> 'Then add mythtv and any other uses you wish to the "wheel" group.'<br>
>> There is no Wheel Group, is this even relevant? I'm logging out (because<br>
>> I'm using the "check_login.sh") but the box does not shut down (it passed<br>
>> the previous test in the wiki). I'm using myth v 31 on Ubuntu 20.04<br>
>> combined FE/BE. TIA  Daryl<br>
>><br>
><br>
>The wheel group is the historic name for what is now usually called the<br>
>sudo group.  The idea is that you can just add users to the group instead<br>
>of configuring them individually in /etc/sudoers.  Most distributions will<br>
>ship an /etc/sudoers file with:<br>
><br>
>%sudo   ALL=(ALL:ALL) ALL<br>
><br>
>in it, which makes this work.  Presumably in terms of what you're trying to<br>
>accomplish, this is because the automatic shutdown will be done by the<br>
>mythtv user via sudo as:<br>
><br>
>sudo shutdown -h now<br>
><br>
>Cheers, Ian<br>
<br>
The problem with "sudo shutdown -h now" is that it will pop up a<br>
request for a password.  Which is why you need to add sudoer<br>
configuration for your shutdown script to allow it to be run by sudo<br>
without a password.  So the "ACPI Shutdown" Wiki page tells you to add<br>
this to the sudoers config:<br>
<br>
%mythtv ALL = NOPASSWD: /sbin/shutdown, /usr/bin/setwakeup.sh<br></blockquote><div><br></div><div>I have this in the sudoers file, with the addition of /usr/bin/checklogin.sh </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<br>
as that has the "NOPASSWD:" option.<br></blockquote><div><br></div><div>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! </div></div></div>
</blockquote></div>