<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content="MSHTML 6.00.2900.2802" name=GENERATOR></HEAD>
<BODY>
<DIV><FONT face=Arial color=#0000ff size=2><SPAN class=500362803-17012006>so, 
i've worked on it a little more.&nbsp; found a couple 
issues.</SPAN></FONT></DIV>
<DIV><FONT face=Arial color=#0000ff size=2><SPAN class=500362803-17012006>1) 
need to have /sbin/halt in the sudoers file:</SPAN></FONT></DIV>
<DIV><FONT face=Arial color=#0000ff size=2><SPAN 
class=500362803-17012006>"live&nbsp; ALL=NOPASSWD:/sbin/shutdown, /sbin/halt, 
/sbin/reboot"</SPAN></FONT></DIV>
<DIV><FONT face=Arial color=#0000ff size=2><SPAN class=500362803-17012006>2) 
need to have /sbin in my user path.&nbsp; did this by adding "PATH=$PATH:/sbin" 
to the .bashrc file in my mythtv user's directory.&nbsp; </SPAN></FONT></DIV>
<DIV><FONT face=Arial color=#0000ff size=2><SPAN 
class=500362803-17012006></SPAN></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial color=#0000ff size=2><SPAN class=500362803-17012006>then 
the sudo xxxx commands worked.&nbsp; unfortunately, that's not how mythtv must 
call for shutdown.&nbsp; i get "halt: must be superuser".</SPAN></FONT></DIV>
<DIV><FONT face=Arial color=#0000ff size=2><SPAN 
class=500362803-17012006></SPAN></FONT>&nbsp;</DIV>
<DIV><FONT><SPAN class=500362803-17012006><FONT face=Arial><FONT color=#0000ff 
size=2>so i typed "chmod +s /sbin/halt".&nbsp; now it works.&nbsp; i can exit 
from the menu button and my frontend will shutdown.&nbsp; the sudo file stuff 
doesn't mean anything now, and all users can now halt the system.&nbsp; is there 
a better way to do this?&nbsp; thanks.</FONT></FONT></SPAN></FONT></DIV>
<DIV class=OutlookMessageHeader dir=ltr align=left><FONT face=Tahoma 
size=2>-----Original Message-----<BR></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN class=937272619-16012006>the 'exit and 
shutdown' button used to work for me.&nbsp; isn't now though.&nbsp; i've noticed 
that the user i am logging in with does not have priveleges to run 
shutdown.&nbsp; so, i editted the sudoers file.&nbsp; didn't seem to change 
anything though.&nbsp; here's my file, username live:</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN 
class=937272619-16012006></SPAN></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2><SPAN 
class=937272619-16012006>&lt;start&gt;</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN class=937272619-16012006># /etc/sudoers <BR># 
<BR># This file MUST be edited with the 'visudo' command as root. <BR># <BR># 
See the man page for details on how to write a sudoers file. <BR># <BR><BR># 
Host alias specification <BR><BR># User alias specification <BR><BR># Cmnd alias 
specification <BR>Cmnd_Alias&nbsp; &nbsp; SHUTDOWN = /sbin/shutdown <BR><BR># 
User privilege specification <BR>root&nbsp; &nbsp; ALL=(ALL) ALL 
<BR><BR>live&nbsp; &nbsp; ALL = NOPASSWD: SHUTDOWN </SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN 
class=937272619-16012006>&lt;end&gt;</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN 
class=937272619-16012006></SPAN></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2><SPAN class=937272619-16012006>but, when i choose 
the 'exit and shutdown' button, i get a command not 
found.&nbsp;&nbsp;specifically, 'sh: line 1: halt: command not found'.&nbsp; any 
ideas?&nbsp; </SPAN></FONT></DIV></BODY></HTML>