<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>
> Ryan Pisani skrev:<br>
>>> Hi all<br>
>>><br>
>>> I have a combo FE / BE in the livingroom and a FE Only in the bedroom.<br>
>>> My problem is that i can't shutodown the FE from within MythTV. Every<br>
>>> time i select Shutdown in the mainmenu nothing happends.<br>
>>><br>
>>> I have done the following:<br>
>>> 1 I have enabled SHUTDOWN in mainmenu.xml<br>
>>> 2 As HaltCommand I have entered 'sudo /sbin/shutdown -h now' (I<br>
>>> guess that SHUTDOWN is executing this)<br>
>>><br>
>> Try providing the full path to sudo in your shutdown command.<br>
>><br>
>> /usr/bin/sudo (or where ever you have it installed) /sbin/shutdown -h now<br>
>><br>
>><br>
>><br>
>><br>
>>> 3 Using visudo I have entered the following line mythUser<br>
>>> ALL=NOPASSWD: /sbin/shutdown, /sbin/poweroff, /sbin/reboot, /sbin/halt<br>
>>><br>
>>> The user MythUser can execute the command 'sudo /sbin/shutdown -h now'<br>
>>> from a terminal windows and everything works, but not from within<br>
>>> MythFrontend. What am I doing wrong?<br>
>>><br>
>>> /Peter<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>
>>><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>
>><br>
> Providing the absolute path to sudo did not work, the result are the same.<br>
> I think I can live with the script solution, it works right now :-)<br>
><br>
> Thanks for the help<br>
><br>
> /Peter<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>
</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'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>
/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 "org.freedesktop.Hal.Device.SystemPowerManagement" member "Shutdown" error name "(unset)" destination "org.freedesktop.Hal")<br>
2008-05-16 21:25:13.089 I'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>