[mythtv-users] fail to shut down

Daryl McDonald darylangela at gmail.com
Tue Sep 2 03:28:46 UTC 2014


On Mon, Sep 1, 2014 at 10:25 PM, Bill Meek <keemllib at gmail.com> wrote:

> On 09/01/2014 08:32 PM, Daryl McDonald wrote:
> ...
>
> > I've looked at the setwakeup.sh in Precise and Trusty and they look the
>
>> same to me, same ownership and same permissions. Where should I go from
>> here?
>>
>
> Test it from the command line. First, become the mythtv user:
>
>     sudo --set-home --login --user=mythtv
>
> Then execute the failing command using the current time + 120 seconds:
>
>     sudo /usr/bin/setwakeup.sh $((`date +'%s'` + 120)) ; echo $?
>
> You want to see a 0 returned from the echo $? command.
>
> Note that you shouldn't be prompted for a password,
> assuming /etc/sudoers.d/mythtv is setup properly. If
> you still have your old root partition available, you
> can mount it and look at what was there before.
>
> When you're done testing, don't forget to press control-d
> to become yourself again. Or just close the terminal window.
>
> --
> Bill
>
> _______________________________________________
> mythtv-users mailing list
> mythtv-users at mythtv.org
> http://www.mythtv.org/mailman/listinfo/mythtv-users
> http://wiki.mythtv.org/Mailing_List_etiquette
> MythTV Forums: https://forum.mythtv.org
>

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:

daryl at daryl-A780L3C:~$ cd /media/daryl/10b4bdaf-d0f0-4f4d-b003-8049f075c12a
daryl at daryl-A780L3C:/media/daryl/10b4bdaf-d0f0-4f4d-b003-8049f075c12a$ sudo
cat /etc/sudoers.d/mythtv
[sudo] password for daryl:
#%mythtv ALL = NOPASSWD: /sbin/shutdown, /usr/bin/setwakeup.sh
daryl at daryl-A780L3C:/media/daryl/10b4bdaf-d0f0-4f4d-b003-8049f075c12a$ ls
-l /etc/sudoers.d/mythtv
-r--r----- 1 root root 63 Aug 29 09:29 /etc/sudoers.d/mythtv
daryl at daryl-A780L3C:/media/daryl/10b4bdaf-d0f0-4f4d-b003-8049f075c12a$ cd ~
daryl at daryl-A780L3C:~$ sudo cat /etc/sudoers.d/mythtv
#%mythtv ALL = NOPASSWD: /sbin/shutdown, /usr/bin/setwakeup.sh
daryl at daryl-A780L3C:~$ ls -l /etc/sudoers.d/mythtv
-r--r----- 1 root root 63 Aug 29 09:29 /etc/sudoers.d/mythtv
daryl at daryl-A780L3C:~$

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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.mythtv.org/pipermail/mythtv-users/attachments/20140901/416f6f6c/attachment-0001.html>


More information about the mythtv-users mailing list