<br><div class="gmail_quote"><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div><div class="Wj3C7c">Peter Øgaard Meyland wrote:<br>
&gt; Ryan Pisani skrev:<br>
&gt;&gt;&gt; Hi all<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; I have a combo FE / BE in the livingroom and a FE Only in the bedroom.<br>
&gt;&gt;&gt; My problem is that i can&#39;t shutodown the FE from within MythTV. Every<br>
&gt;&gt;&gt; time i select Shutdown in the mainmenu nothing happends.<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; I have done the following:<br>
&gt;&gt;&gt; &nbsp; &nbsp; 1 I have enabled SHUTDOWN in mainmenu.xml<br>
&gt;&gt;&gt; &nbsp; &nbsp; 2 As HaltCommand I have entered &#39;sudo /sbin/shutdown -h now&#39; (I<br>
&gt;&gt;&gt; guess that SHUTDOWN is executing this)<br>
&gt;&gt;&gt;<br>
&gt;&gt; Try providing the full path to sudo in your shutdown command.<br>
&gt;&gt;<br>
&gt;&gt; /usr/bin/sudo (or where ever you have it installed) /sbin/shutdown -h now<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt;&gt; &nbsp; &nbsp; 3 Using visudo I have entered the following line mythUser<br>
&gt;&gt;&gt; ALL=NOPASSWD: /sbin/shutdown, /sbin/poweroff, /sbin/reboot, /sbin/halt<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; The user MythUser can execute the command &#39;sudo /sbin/shutdown -h now&#39;<br>
&gt;&gt;&gt; from a terminal windows and everything works, but not from within<br>
&gt;&gt;&gt; MythFrontend. What am I doing wrong?<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; /Peter<br>
&gt;&gt;&gt; _______________________________________________<br>
&gt;&gt;&gt; mythtv-users mailing list<br>
&gt;&gt;&gt; <a href="mailto:mythtv-users@mythtv.org">mythtv-users@mythtv.org</a><br>
&gt;&gt;&gt; <a href="http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-users" target="_blank">http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-users</a><br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt;<br>
&gt;&gt; _______________________________________________<br>
&gt;&gt; mythtv-users mailing list<br>
&gt;&gt; <a href="mailto:mythtv-users@mythtv.org">mythtv-users@mythtv.org</a><br>
&gt;&gt; <a href="http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-users" target="_blank">http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-users</a><br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt; Providing the absolute path to sudo did not work, the result are the same.<br>
&gt; I think I can live with the script solution, it works right now :-)<br>
&gt;<br>
&gt; Thanks for the help<br>
&gt;<br>
&gt; /Peter<br>
&gt; _______________________________________________<br>
&gt; mythtv-users mailing list<br>
&gt; <a href="mailto:mythtv-users@mythtv.org">mythtv-users@mythtv.org</a><br>
&gt; <a href="http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-users" target="_blank">http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-users</a><br>
</div></div>If you are running on Ubuntu 8.04+, try:<br>
<br>
/usr/share/mythtv/myth-halt.sh<br>
<br>
It uses hal to do things.<br>
<font color="#888888"><br>
--<br>
Mario Limonciello<br>
<a href="mailto:mario.mailing@gmail.com">mario.mailing@gmail.com</a><br>
<br>
</font><br>_______________________________________________<br>
mythtv-users mailing list<br>
<a href="mailto:mythtv-users@mythtv.org">mythtv-users@mythtv.org</a><br>
<a href="http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-users" target="_blank">http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-users</a><br>
<br></blockquote></div><br>I&#39;ve installed Mythbuntu 8.04 and want to use Mythwelcome. When I use the suggested myth-halt.sh I see in /var/log/mythtv/mythbackend.log:<br><br>2008-05-16 21:25:11.050 Running the command to shutdown this computer :-<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; /usr/share/mythtv/myth-halt.sh<br>Error org.freedesktop.DBus.Error.AccessDenied: A security policy in place prevents this sender from sending this message to this recipient, see message bus configuration file (rejected message had interface &quot;org.freedesktop.Hal.Device.SystemPowerManagement&quot; member &quot;Shutdown&quot; error name &quot;(unset)&quot; destination &quot;org.freedesktop.Hal&quot;)<br>
2008-05-16 21:25:13.089 I&#39;m idle now... shutdown will occur in 60 seconds.<br><br>Also when I try the command manually it gives me this error.<br><br>I do not know what to do, can I solve this easily?<br><br>In the mean time I tried to add the mythtv user to the sudoers file with visudo to not require a password. But sudo keeps asking for a password.<br>
<br>I added the following line:<br>mythtv ALL=NOPASSWD: /sbin/reboot, /sbin/halt, /sbin/shutdown<br>Does it matter where I add the line in the file? I assume spaces are ok, and visudo does not complain when I save the file.<br>
<br>I gave the mythtv user a password. (Mythbuntu only uses the user via sudo ?)<br><br>But when I try it, it does not work, for example:<br><br>rmorrien@MythTV:~$ su mythtv<br>Password:<br>$ /usr/bin/sudo /sbin/reboot<br>
[sudo] password for mythtv:<br><br>Suggestions are welcome,<br><br>Martijn<br><br>