<div dir="ltr"><br><div class="gmail_extra"><br><br><div class="gmail_quote">On Mon, Sep 1, 2014 at 11:28 PM, Daryl McDonald <span dir="ltr"><<a href="mailto:darylangela@gmail.com" target="_blank">darylangela@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div dir="ltr"><br><div class="gmail_extra"><br><br><div class="gmail_quote">
<div><div class="h5">On Mon, Sep 1, 2014 at 10:25 PM, Bill Meek <span dir="ltr"><<a href="mailto:keemllib@gmail.com" target="_blank">keemllib@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">On 09/01/2014 08:32 PM, Daryl McDonald wrote:<br>
...<div><br>
> I've looked at the setwakeup.sh in Precise and Trusty and they look the<br>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
same to me, same ownership and same permissions. Where should I go from<br>
here?<br>
</blockquote>
<br></div>
Test it from the command line. First, become the mythtv user:<br>
<br>
sudo --set-home --login --user=mythtv<br>
<br>
Then execute the failing command using the current time + 120 seconds:<br>
<br>
sudo /usr/bin/setwakeup.sh $((`date +'%s'` + 120)) ; echo $?<br>
<br>
You want to see a 0 returned from the echo $? command.<br>
<br>
Note that you shouldn't be prompted for a password,<br>
assuming /etc/sudoers.d/mythtv is setup properly. If<br>
you still have your old root partition available, you<br>
can mount it and look at what was there before.<br>
<br>
When you're done testing, don't forget to press control-d<br>
to become yourself again. Or just close the terminal window.<span><font color="#888888"><br>
<br>
-- <br>
Bill</font></span><div><div><br>
______________________________<u></u>_________________<br>
mythtv-users mailing list<br>
<a href="mailto:mythtv-users@mythtv.org" target="_blank">mythtv-users@mythtv.org</a><br>
<a href="http://www.mythtv.org/mailman/listinfo/mythtv-users" target="_blank">http://www.mythtv.org/mailman/<u></u>listinfo/mythtv-users</a><br>
<a href="http://wiki.mythtv.org/Mailing_List_etiquette" target="_blank">http://wiki.mythtv.org/<u></u>Mailing_List_etiquette</a><br>
MythTV Forums: <a href="https://forum.mythtv.org" target="_blank">https://forum.mythtv.org</a></div></div></blockquote><div><br></div></div></div><div>Well I'm scratching my head, I thought we'd found it because after becoming mythtv user I was asked for a password after entering the next command, so I mounted the Precise root and the comparison follows:</div>
<div><br></div><div><div>daryl@daryl-A780L3C:~$ cd /media/daryl/10b4bdaf-d0f0-4f4d-b003-8049f075c12a</div><div>daryl@daryl-A780L3C:/media/daryl/10b4bdaf-d0f0-4f4d-b003-8049f075c12a$ sudo cat /etc/sudoers.d/mythtv</div><div>
[sudo] password for daryl: </div><div>#%mythtv ALL = NOPASSWD: /sbin/shutdown, /usr/bin/setwakeup.sh</div><div>daryl@daryl-A780L3C:/media/daryl/10b4bdaf-d0f0-4f4d-b003-8049f075c12a$ ls -l /etc/sudoers.d/mythtv</div><div>
-r--r----- 1 root root 63 Aug 29 09:29 /etc/sudoers.d/mythtv</div>
<div>daryl@daryl-A780L3C:/media/daryl/10b4bdaf-d0f0-4f4d-b003-8049f075c12a$ cd ~</div><div>daryl@daryl-A780L3C:~$ sudo cat /etc/sudoers.d/mythtv</div><div>#%mythtv ALL = NOPASSWD: /sbin/shutdown, /usr/bin/setwakeup.sh</div>
<div>daryl@daryl-A780L3C:~$ ls -l /etc/sudoers.d/mythtv</div><div>-r--r----- 1 root root 63 Aug 29 09:29 /etc/sudoers.d/mythtv</div><div>daryl@daryl-A780L3C:~$ </div></div><div><br></div><div>I've got Precise and Trusty in dual boot at the moment, and I went back to the wakeuptest.sh you pastebined for me last year Bill and put it in each systems home directory, It works perfectly from Precise and fails from Trusty. I have looked at the wiki and the 107 post "carbon footprint" thread at least three times each and I'm stymied. As always, open to suggestions. </div>
</div></div></div></blockquote><div><br></div><div>I should have included this earlier:</div><div><br></div><div> daryl@daryl-A780L3C:~$ sudo --set-home --login --user=mythtv</div><div>$ sudo /usr/bin/setwakeup.sh $((`date +'%s'` + 120)) ; echo $?</div>
<div>[sudo] password for mythtv:</div></div><br></div></div>