<!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. 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 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. did this by adding "PATH=$PATH:/sbin"
to the .bashrc file in my mythtv user's directory. </SPAN></FONT></DIV>
<DIV><FONT face=Arial color=#0000ff size=2><SPAN
class=500362803-17012006></SPAN></FONT> </DIV>
<DIV><FONT face=Arial color=#0000ff size=2><SPAN class=500362803-17012006>then
the sudo xxxx commands worked. unfortunately, that's not how mythtv must
call for shutdown. i get "halt: must be superuser".</SPAN></FONT></DIV>
<DIV><FONT face=Arial color=#0000ff size=2><SPAN
class=500362803-17012006></SPAN></FONT> </DIV>
<DIV><FONT><SPAN class=500362803-17012006><FONT face=Arial><FONT color=#0000ff
size=2>so i typed "chmod +s /sbin/halt". now it works. i can exit
from the menu button and my frontend will shutdown. the sudo file stuff
doesn't mean anything now, and all users can now halt the system. is there
a better way to do this? 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. isn't now though. i've noticed
that the user i am logging in with does not have priveleges to run
shutdown. so, i editted the sudoers file. didn't seem to change
anything though. here's my file, username live:</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN
class=937272619-16012006></SPAN></FONT> </DIV>
<DIV><FONT face=Arial size=2><SPAN
class=937272619-16012006><start></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 SHUTDOWN = /sbin/shutdown <BR><BR>#
User privilege specification <BR>root ALL=(ALL) ALL
<BR><BR>live ALL = NOPASSWD: SHUTDOWN </SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN
class=937272619-16012006><end></SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN
class=937272619-16012006></SPAN></FONT> </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. specifically, 'sh: line 1: halt: command not found'. any
ideas? </SPAN></FONT></DIV></BODY></HTML>